Open ceccocats opened 2 months ago
Solved! The issue was a pow function call with arguments of mixed type (float, int): https://github.com/projectchrono/chrono/blob/3eb56218b9fef0db58e5dd5b35a864e596bc2628/src/chrono_sensor/optix/shaders/material_shaders.cu#L1011 with the passed arguments as float it works:
B_C = (1 + (1 - exp(-tan_ghalf_per_hC)) / tan_ghalf_per_hC) / (2 * pow(1.0f + tan_ghalf_per_hC, 2.0f));
I tried calling pow with integers and i always have compile errors. Do you know if there is a method to build this files at compile time and not at runtime?
Actually its possible to build PTX file at compile time with this flag -DUSE_CUDA_NVRTC=OFF
.
With runtime compilation i found another issue:
At runtime nvdb_vol_intersect.cu is compiled without the flag USE_SENSOR_NVDB
so it would not compile properly
https://github.com/projectchrono/chrono/blob/0704f62924ab5e09e1fdd2ffbbe9bf7a6d95c9f9/src/chrono_sensor/optix/shaders/nvdb_vol_intersect.cu#L9
branch: main (also tested on 9.0 release) compile command:
I have Optix link error if i launch any sensors module demo. This is the error with camera demo: