From 1177d9a3a2073db1b0a79e471fe574313380837d Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Fri, 17 Jan 2020 14:29:02 +0100 Subject: [PATCH] Make assert error message more helpful --- pystencils/gpucuda/cudajit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pystencils/gpucuda/cudajit.py b/pystencils/gpucuda/cudajit.py index a77767dce..86f251c97 100644 --- a/pystencils/gpucuda/cudajit.py +++ b/pystencils/gpucuda/cudajit.py @@ -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")] -- GitLab