Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephan Seitz
pystencils
Commits
1177d9a3
Commit
1177d9a3
authored
Jan 17, 2020
by
Stephan Seitz
Browse files
Make assert error message more helpful
parent
d03c3eea
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/gpucuda/cudajit.py
View file @
1177d9a3
...
...
@@ -58,8 +58,9 @@ def make_python_function(kernel_function_node, argument_dict=None, custom_backen
from
os.path
import
join
,
dirname
,
isdir
if
any
(
t
.
interpolation_mode
==
InterpolationMode
.
CUBIC_SPLINE
for
t
in
textures
):
assert
isdir
(
join
(
dirname
(
__file__
),
"CubicInterpolationCUDA"
,
"code"
)),
\
"Submodule CubicInterpolationCUDA does not exist"
assert
isdir
(
join
(
dirname
(
__file__
),
(
"CubicInterpolationCUDA"
,
"code"
)),
"Submodule CubicInterpolationCUDA does not exist.
\n
"
+
"Clone https://github.com/theHamsta/CubicInterpolationCUDA into pystencils.gpucuda"
)
nvcc_options
+=
[
"-I"
+
join
(
dirname
(
__file__
),
"CubicInterpolationCUDA"
,
"code"
)]
nvcc_options
+=
[
"-I"
+
join
(
dirname
(
__file__
),
"CubicInterpolationCUDA"
,
"code"
,
"internal"
)]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment