Repository navigation
Thrust, CUDA Runtime 13.0 throws CUDACOMPILE : nvcc error : 'cudafe++' died with status 0xC0000409 in Visual Studio 2022 Version 17.14.21 #6724
Replies: 3 comments
|
Hello @venkatkasirajan! I'm not able to reproduce this with Visual Studio 17.14 (latest patch version) and CTK 13.0: The program I've built was simply: #include <thrust/host_vector.h>
#include <thrust/device_vector.h>
int main() {}Could you please provide a standalone reproducer (command line options, source code etc.)? Also, do you see this error without thrust includes? |
|
You can close the ticket. I couldnt find time to create an equivalent code
that I can share with you due to varying priorities here.
I rather replaced thrust with my own version now and I am good.
However, I'm of the opinion that the problem is still there & if I am able
to spend some time on this, I will try to open this ticket again.
tan(q) ⋅ lim Regards(r)
r → ∞
Venkat Kasirajan
*Author: Fundamentals of Quantum Computing: Theory and Practice
<https://www.springer.com/us/book/9783030636883>*
“From the ashes, a fire shall be woken, A light from the shadows shall
spring.
Renewed shall be the blade that was broken; the crownless again shall be
king.”
― J.R.R. Tolkien, The Fellowship of the Ring
…On Wed, Dec 31, 2025 at 11:40 AM Georgii Evtushenko < ***@***.***> wrote:
Hello @venkatkasirajan <https://github.com/venkatkasirajan>!
I'm not able to reproduce this with Visual Studio 17.14 (latest patch
version) and CTK 13.0:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\bin\nvcc.exe" -gencode=arch=compute_75,code=\"sm_75,compute_75\" --use-local-env -ccbin "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.44.35207\bin\HostX64\x64" -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\include" --keep-dir x64\Release -maxrregcount=0 --machine 64 --compile -cudart static -std=c++17 -Xcompiler "/std:c++17" -DWIN32 -DWIN64 -DNDEBUG -D_CONSOLE -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /FS /MD " -Xcompiler "/Fdx64\Release\vc143.pdb" -o C:\Users\gevtushenko\source\repos\CudaRuntime130\CudaRuntime130\x64\Release\kernel.cu.obj "C:\Users\gevtushenko\source\repos\CudaRuntime130\CudaRuntime130\kernel.cu"
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 10:32 AM and took 09.151 seconds ==========
The program I've built was simply:
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
int main() {}
Could you please provide a standalone reproducer (command line options,
source code etc.)?
—
Reply to this email directly, view it on GitHub
<#6724 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BI3Q4LHOZNPPMAIBDIRQGVL4EQKCHAVCNFSM6AAAAACMY6XT4WVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMZYGI4TQNY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
I get the same problem using CUDA 13.3 and Visual Studio 2026 (18.9.0) on Windows 11. (1) a problem with the definition of _CCCL_RESTRICT nvcc details:
Compiling the following file fails, either inside Visual Studio 2026 or from the command line, Output from the command line: Some output from Visual Studio: The above errors refer to line 53 in file constexpr_c_functions.h, and appear to be caused by a wrong definition of "_CCCL_RESTRICT", Here are examples of the 2nd issue (unsupported '__asm' blocks), Is anyone able to use the current thrust library using Visual Studio 2026? |
Uh oh!
There was an error while loading. Please reload this page.
Inclusion of thrust headers
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
Causes Visual Studio 2022 Version 17.14.21 to throw an exception: CUDACOMPILE : nvcc error : 'cudafe++' died with status 0xC0000409
The same code works well with CUDA Runtime 12.9 on the same compiler.
Build dependencies are set well.
What could be wrong?
All reactions