Warp 1.9.0 initialized:
CUDA Toolkit 12.8, Driver 13.0
Devices:
"cpu" : "CPU"
"cuda:0" : "NVIDIA GeForce GTX 1080 Ti" (11 GiB, sm_61, mempool enabled)
Kernel cache:
/home/liblaf/.cache/warp/1.9.0
Warp NVRTC compilation error 6: NVRTC_ERROR_COMPILATION (/builds/omniverse/warp/warp/native/warp.cu:3622)
nvrtc: warning: Architectures prior to '<compute/sm>_75' are deprecated and may be removed in a future release
wp_map_func_d8cae767_c21cf51.cu(27): error: invalid line number
#line 0 "/home/liblaf/github/liblaf/apple/playground/hello.py"
^
/home/liblaf/github/liblaf/apple/playground/hello.py(2): error: invalid line number
#line 0 "/home/liblaf/github/liblaf/apple/playground/hello.py"
^
/home/liblaf/github/liblaf/apple/playground/hello.py(7): error: invalid line number
#line 0 "/home/liblaf/github/liblaf/apple/playground/hello.py"
^
/home/liblaf/github/liblaf/apple/playground/hello.py(5): error: invalid line number
#line 0 "/home/liblaf/github/liblaf/apple/playground/hello.py"
^
/home/liblaf/github/liblaf/apple/playground/hello.py(1): warning #550-D: variable "var_3" was set but never used
wp::float32 var_3;
^
Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"
/home/liblaf/github/liblaf/apple/playground/hello.py(10): error: invalid line number
#line 0 "unknown source file"
^
/home/liblaf/github/liblaf/apple/playground/hello.py(18): error: invalid line number
#line 0 "unknown source file"
^
/home/liblaf/github/liblaf/apple/playground/hello.py(20): error: invalid line number
#line 0 "unknown source file"
^
/home/liblaf/github/liblaf/apple/playground/hello.py(22): error: invalid line number
#line 0 "unknown source file"
^
/home/liblaf/github/liblaf/apple/playground/hello.py(26): error: invalid line number
#line 0 "unknown source file"
^
unknown source file(6): error: invalid line number
#line 0 "unknown source file"
^
unknown source file(8): error: invalid line number
#line 0 "unknown source file"
^
unknown source file(13): error: invalid line number
#line 0 "unknown source file"
^
unknown source file(25): error: invalid line number
#line 0 "unknown source file"
^
unknown source file(27): error: invalid line number
#line 0 "unknown source file"
^
unknown source file(29): error: invalid line number
#line 0 "unknown source file"
^
unknown source file(33): error: invalid line number
#line 0 "unknown source file"
^
unknown source file(7): error: invalid line number
#line 0 "unknown source file"
^
unknown source file(9): error: invalid line number
#line 0 "unknown source file"
^
18 errors detected in the compilation of "wp_map_func_d8cae767_c21cf51.cu".
Module map_func_d8cae767 c21cf51 load on device 'cuda:0' took 189.08 ms (error)
Traceback (most recent call last):
File "/home/liblaf/github/liblaf/apple/playground/hello.py", line 7, in <module>
result = wp.map(lambda x, y, z: x + 2.0 * y - z, a, b, c)
File "/home/liblaf/github/liblaf/apple/.venv/lib/python3.13/site-packages/warp/utils.py", line 1058, in map
wp.launch(
~~~~~~~~~^
kernel,
^^^^^^^
...<4 lines>...
device=device,
^^^^^^^^^^^^^^
)
^
File "/home/liblaf/github/liblaf/apple/.venv/lib/python3.13/site-packages/warp/context.py", line 6169, in launch
module_exec = kernel.module.load(device, block_dim)
File "/home/liblaf/github/liblaf/apple/.venv/lib/python3.13/site-packages/warp/context.py", line 2601, in load
raise (e)
File "/home/liblaf/github/liblaf/apple/.venv/lib/python3.13/site-packages/warp/context.py", line 2598, in load
self.compile(device, module_dir, output_name, output_arch)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/liblaf/github/liblaf/apple/.venv/lib/python3.13/site-packages/warp/context.py", line 2466, in compile
raise (e)
File "/home/liblaf/github/liblaf/apple/.venv/lib/python3.13/site-packages/warp/context.py", line 2445, in compile
warp.build.build_cuda(
~~~~~~~~~~~~~~~~~~~~~^
source_code_path,
^^^^^^^^^^^^^^^^^
...<9 lines>...
fatbins=builder.fatbins.values(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/liblaf/github/liblaf/apple/.venv/lib/python3.13/site-packages/warp/build.py", line 91, in build_cuda
raise Exception(f"CUDA kernel build failed with error code {err}")
Exception: CUDA kernel build failed with error code 6
Bug Description
When using
wp.map, the code fails with aNVRTC_ERROR_COMPILATION(error 6) ifwp.config.modeis set to"debug". The error messages indicate an "invalid line number".The same code runs correctly when
wp.config.modeis set to"release".To Reproduce:
Error Log (click to expand)
System Information