Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA_ERROR_INVALID_SOURCE: device kernel image is invalid #566

Open
Colmar-zlicheng opened this issue Jan 14, 2025 · 0 comments
Open

CUDA_ERROR_INVALID_SOURCE: device kernel image is invalid #566

Colmar-zlicheng opened this issue Jan 14, 2025 · 0 comments

Comments

@Colmar-zlicheng
Copy link

When I run python examples/rendering/demo.py, I met this error:

[2025-01-14 18:26:22.283] [console] [error] CUDA_ERROR_INVALID_SOURCE: device kernel image is invalid [/home/sqz/Genesis/genesis/ext/LuisaRender/src/compute/src/backends/cuda/cuda_shader_native.cpp:46]
     0 [0x7dfab033fd67]: /home/sqz/Genesis/genesis/ext/LuisaRender/build/bin/liblc-backend-cuda.so :: unknown + 1310055
     1 [0x7dfab03404ce]: /home/sqz/Genesis/genesis/ext/LuisaRender/build/bin/liblc-backend-cuda.so :: luisa::compute::cuda::CUDAShaderNative::CUDAShaderNative(luisa::compute::cuda::CUDADevice*, eastl::vector<std::byte, eastl::allocator>, char const*, luisa::compute::cuda::CUDAShaderMetadata const&, eastl::vector<luisa::compute::Argument, eastl::allocator>) + 510
     2 [0x7dfab02ae38a]: /home/sqz/Genesis/genesis/ext/LuisaRender/build/bin/liblc-backend-cuda.so :: luisa::compute::cuda::CUDADevice::_create_shader(std::__cxx11::basic_string<char, std::char_traits<char>, luisa::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, luisa::allocator<char> > const&, luisa::compute::ShaderOption const&, eastl::span<char const* const, 18446744073709551615ul>, luisa::compute::cuda::CUDAShaderMetadata const&, eastl::vector<luisa::compute::Argument, eastl::allocator>) + 1546
     3 [0x7dfab02b414b]: /home/sqz/Genesis/genesis/ext/LuisaRender/build/bin/liblc-backend-cuda.so :: luisa::compute::cuda::CUDADevice::create_shader(luisa::compute::ShaderOption const&, luisa::compute::Function) + 3323
     4 [0x7dfa957bc236]: /home/sqz/Genesis/genesis/ext/LuisaRender/build/bin/libluisa-render-film-color.so :: unknown + 160310
     5 [0x7dfac8302454]: /home/sqz/miniconda3/envs/genesis/lib/python3.9/site-packages/genesis/ext/LuisaRender/build/bin/libluisa-render-util.so :: std::thread::_State_impl<std::thread::_Invoker<std::tuple<luisa::render::ThreadPool::Impl::Impl(unsigned long)::{lambda()#1}> > >::_M_run() + 196
     6 [0x7dfbea0dc253]: /home/sqz/miniconda3/envs/genesis/lib/python3.9/site-packages/torch/lib/../../../../libstdc++.so.6 :: unknown + 901715
     7 [0x7dfc45a94ac3]: /lib/x86_64-linux-gnu/libc.so.6 :: unknown + 608963
     8 [0x7dfc45b26850]: /lib/x86_64-linux-gnu/libc.so.6 :: unknown + 1206352
Aborted (core dumped)

I'm using ubuntu 22.04, with

(genesis) (base) sqz@sqz-snow:~/Genesis$ nvidia-smi
Tue Jan 14 18:28:25 2025       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.120                Driver Version: 550.120        CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4080 ...    Off |   00000000:01:00.0  On |                  N/A |
|  0%   38C    P8             14W /  320W |     321MiB /  16376MiB |      1%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      2001      G   /usr/lib/xorg/Xorg                            145MiB |
|    0   N/A  N/A      5316      G   gnome-control-center                            4MiB |
|    0   N/A  N/A    295036      G   /usr/bin/gnome-shell                           51MiB |
|    0   N/A  N/A    297279      G   ...erProcess --variations-seed-version        103MiB |
+-----------------------------------------------------------------------------------------+
(genesis) (base) sqz@sqz-snow:~/Genesis$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Tue_Feb_27_16:19:38_PST_2024
Cuda compilation tools, release 12.4, V12.4.99
Build cuda_12.4.r12.4/compiler.33961263_0

before this error, a visual interface will appear a second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant