My code compiles no problem under CUDA 4.2, but with CUDA 5.0 with optimisation enabled, it crashes:
- Running pass ‘Live Variable Analysis’ on function ‘@Z11polyfit17x3PdS’
nvcc : error : ‘cicc’ died with status 0xC0000005 (ACCESS_VIOLATION)
My code doesn’t do anything unusual - merely additions and multiplications (attached with crash details), however it is quite long and uses a large number of memory locations.
I have been looking around internet for this for a longer while now. One hint i got is that possibly, old versions (v4.2) of include files are still on path. I have verified that this is not the case for my system.
I have also verified that it compiles OK for -arch sm_10,sm_13 but not for sm_20.
Everything else points into direction a bug in cicc.exe
This is a performance-critical part of my code, i cannot run it with optimizations disabled. Please help.
i am using the following (minimal) command line:
nvcc -O3 -arch sm_35 crash_me.cu
Windows 7 64 bit, CUDA 5.0 official release