Skip to content

ptxas fatal compile error #6

@philliptee

Description

@philliptee

1>ptxas C : /Users/phil/AppData/Local/Temp/tmpxft_00002220_00000000-6_optix_shadow_material.ptx, line 522; error : Label expected for argument 0 of instruction 'call'
1>ptxas C : /Users/phil/AppData/Local/Temp/tmpxft_00002220_00000000-6_optix_shadow_material.ptx, line 522; error : Function '_rt_ignore_intersection' not declared in this scope
1> ptxas C:/Users/phil/AppData/Local/Temp/tmpxft_00002220_00000000-6_optix_shadow_material.ptx, line 522; fatal : Call target not recognized
1> ptxas fatal : Ptx assembly aborted due to errors
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\BuildCustomizations\CUDA 10.0.targets(712,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe" -gencode=arch=compute_52,code="sm_52,compute_52" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64" -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -I../../src/ -I../../src/mesh/ -I../../contrib -I../../contrib/OptiX/include/ -I../../contrib/freeglut/include/ -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -I../../src/ -I../../src/mesh/ -I../../contrib -I../../contrib/OptiX/include/ -I../../contrib/freeglut/include/ -I../../contrib/cub -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -g -D_DEBUG -DWIN32 -D_CONSOLE -D_CRT_SECURE_NO_WARNINGS -DNOMINMAX -D_USE_MATH_DEFINES -D_UNICODE -DUNICODE -Xcompiler "/EHsc /W3 /nologo /Od /Fdx64\Debug\vc140.pdb /FS /Zi /RTC1 /MDd " -o x64\Debug\optix_shadow_material.cu.obj "C:\Users\phil\Downloads\fermat-master\src\kernels\optix_shadow_material.cu"" exited with code 255.

This error is happening on optix_shadow_material.cu, optix_rt.cu, and optix_material.cu.

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions