Skip to content
Snippets Groups Projects
Commit 1177d9a3 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Make assert error message more helpful

parent d03c3eea
Branches
Tags
1 merge request!129Interpolation refactoring
...@@ -58,8 +58,9 @@ def make_python_function(kernel_function_node, argument_dict=None, custom_backen ...@@ -58,8 +58,9 @@ def make_python_function(kernel_function_node, argument_dict=None, custom_backen
from os.path import join, dirname, isdir from os.path import join, dirname, isdir
if any(t.interpolation_mode == InterpolationMode.CUBIC_SPLINE for t in textures): if any(t.interpolation_mode == InterpolationMode.CUBIC_SPLINE for t in textures):
assert isdir(join(dirname(__file__), "CubicInterpolationCUDA", "code")), \ assert isdir(join(dirname(__file__), ("CubicInterpolationCUDA", "code")),
"Submodule CubicInterpolationCUDA does not exist" "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")]
nvcc_options += ["-I" + join(dirname(__file__), "CubicInterpolationCUDA", "code", "internal")] nvcc_options += ["-I" + join(dirname(__file__), "CubicInterpolationCUDA", "code", "internal")]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment