Module compilation fails with the driver 460.20

Hi,

I updated to 460.20 and get an error like below. When I go back to 460.15 or earlier everything works fine. The same happens on 1060 and 2080.

Looking at maybe related topic I should add my compilation options:

m_module_compile_options.optLevel = OPTIX_COMPILE_OPTIMIZATION_DEFAULT;
m_module_compile_options.debugLevel = OPTIX_COMPILE_DEBUG_LEVEL_LINEINFO;

Thanks for any help!

The error message:

[ 2][COMPILE FEEDBACK]: COMPILE ERROR: Module compilation failed
Info: Pipeline parameter "params" size is 280 bytes
Info: Module uses 4 payload values. Pipeline configuration: 4.
Info: Module uses 6 attribute values. Pipeline configuration: 6.
Info: Entry function "__closesthit__occlusion" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 2 basic block(s), 8 instruction(s)
Info: Entry function "__closesthit__occlusion_transparency" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 7 basic block(s), 78 instruction(s)
Info: Entry function "__anyhit__occlusion" with semantic type ANYHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 2 basic block(s), 9 instruction(s)
Info: Entry function "__closesthit__radiance__flat" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 41 basic block(s), 504 instruction(s)
Info: Entry function "__closesthit__radiance__cos" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 41 basic block(s), 528 instruction(s)
Info: Entry function "__closesthit__radiance__blurred_dot" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 46 basic block(s), 563 instruction(s)
Info: Entry function "__closesthit__radiance__diffuse_masked" with semantic type CLOSESTHIT has 1 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 86 basic block(s), 1249 instruction(s)
Info: Entry function "__closesthit__radiance__diffuse" with semantic type CLOSESTHIT has 1 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 81 basic block(s), 1187 instruction(s)
Info: Entry function "__closesthit__radiance__glass" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 124 basic block(s), 1235 instruction(s)
Info: Entry function "__closesthit__radiance__reflective_masked" with semantic type CLOSESTHIT has 2 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 141 basic block(s), 2052 instruction(s)
Info: Entry function "__closesthit__radiance__reflective" with semantic type CLOSESTHIT has 2 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 136 basic block(s), 1998 instruction(s)
Info: Entry function "__closesthit__radiance__light_soft" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 47 basic block(s), 561 instruction(s)
Info: Entry function "__closesthit__radiance__light_hard" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 45 basic block(s), 542 instruction(s)
Info: Entry function "__closesthit__radiance__shadow_catcher" with semantic type CLOSESTHIT has 1 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 77 basic block(s), 1129 instruction(s)
Info: 7 non-entry function(s) have 42 basic block(s), 647 instruction(s)

OPTIX_ERROR_INTERNAL_COMPILER_ERROR: Optix call 'optixModuleCreateFromPTX( m_context, &m_module_compile_options, &m_pipeline_compile_options, ptx.c_str(), ptx.size(), log, &sizeof_log, &mnew )' failed: c:\...\modules.cpp:37)
Log:
COMPILE ERROR: Module compilation failed
Info: Pipeline parameter "params" size is 280 bytes
Info: Module uses 4 payload values. Pipeline configuration: 4.
Info: Module uses 6 attribute values. Pipeline configuration: 6.
Info: Entry function "__closesthit__occlusion" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 2 basic block(s), 8 instruction(s)
Info: Entry function "__closesthit__occlusion_transparency" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 7 basic block(s), 78 instruction(s)
Info: Entry function "__anyhit__occlusion" with semantic type ANYHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 2 basic block(s), 9 instruction(s)
Info: Entry function "__closesthit__radiance__flat" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 41 basic block(s), 504 instruction(s)
Info: Entry function "__closesthit__radiance__cos" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 41 basic block(s), 528 instruction(s)
Info: Entry function "__closesthit__radiance__blurred_dot" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 46 basic block(s), 563 instruction(s)
Info: Entry function "__closesthit__radiance__diffuse_masked" with semantic type CLOSESTHIT has 1 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 86 basic block(s), 1249 instruction(s)
Info: Entry function "__closesthit__radiance__diffuse" with semantic type CLOSESTHIT has 1 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 81 basic block(s), 1187 instruction(s)
Info: Entry function "__closesthit__radiance__glass" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 124 basic block(s), 1235 instruction(s)
Info: Entry function "__closesthit__radiance__reflective_masked" with semantic type CLOSESTHIT has 2 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 141 basic block(s), 2052 instruction(s)
Info: Entry function "__closesthit__radiance__reflective" with semantic type CLOSESTHIT has 2 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 136 basic block(s), 1998 instruction(s)
Info: Entry function "__closesthit__radiance__light_soft" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 47 basic block(s), 561 instruction(s)
Info: Entry function "__closesthit__radiance__light_hard" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 45 basic block(s), 542 instruction(s)
Info: Entry function "__closesthit__radiance__shadow_catcher" with semantic type CLOSESTHIT has 1 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 77 basic block(s), 1129 instruction(s)
Info: 7 non-entry function(s) have 42 basic block(s), 647 instruction(s)

Thanks for the report.
Could you please add information about the system configuration as well to be able to file a bug report?
Are you running a Windows Insider OS version?

Is any of the OptiX SDK examples reproducing this?
If not, we’d need a minimal standalone reproducer in failing state.

For OptiX development I would recommend using the R455 display drivers 456.71 at this time.
They have been released yesterday for Windows and Linux along with the new OptiX SDK 7.2.0.

I am using regular Windows 10 Home edition.

Fortunately yes, I just tried optixHair and it looks very similar, log attached below.

I’ll be super happy to switch to 7.2, and use some new features :)

Just my users can have all different requirements for drivers they use and that’s just happened - someone updated to 460.20.

Thanks!

optixHair output:

C:\...\OptiX SDK 7.1.0\SDK\build\bin\Debug>optixHair.exe
[ 4][       KNOBS]: All knobs on default.

[ 4][  DISK CACHE]: Opened database: "C:\...\AppData\Local\NVIDIA\OptixCache\cache7.db"
[ 4][  DISK CACHE]:     Cache data size: "9.6 MiB"
Hair:
Number of strands:          50000
Number of points:           1250000
Spline mode:                CUBIC_BSPLINE
Contains segments:          false
Contains points:            true
Contains alpha:             false
Contains color:             false
Default number of segments: 24
Default thickness:          0.1
Default alpha:              0.356013
Default color:              (0.486275, 0.431373, 0.352941)
File info:                  n/a
Strands: [0...1250000]
Points: [(-25.0452, 18.2871, 50.8924)...(4.31476, 26.331, -40.5804)]
Thickness: [0.1...0.1]
Bounding box: [(-58.6832, -42.6692, -52.2403), (28.6001, 43.4566, 64.6666)]

Processing glTF mesh: 'woman'
        Num mesh primitive groups: 1
Processing index buffer
Processing position array0
Processing normal array
Build input type: 8513
Head:
Number of vertices:         31326
Number of triangles:        182640
Bounding box: [(-48.4714, -48.2492, -59.8626), (37.4717, 48.0627, 60.1348)]

[ 4][   DISKCACHE]: Cache miss for key: ptx-586110-keycdff13879d54e0226517cd736f7d89b7-sm_61-rtc0-drv460.20
[ 4][   DISKCACHE]: Inserted module in cache with key: ptx-586110-keycdff13879d54e0226517cd736f7d89b7-sm_61-rtc0-drv460.20
[ 4][COMPILE FEEDBACK]: Info: Pipeline parameter "params" size is 128 bytes
Info: Removed function _Z16getLocalGeometryRK12GeometryData after inlining.
Info: Configured attribute value count 1 is below the minimum of 2, using minimum instead.
Info: Module uses 3 payload values. Pipeline configuration: 4.
Info: Module uses 1 attribute values. Pipeline configuration: 2 (default).
Info: Entry function "__closesthit__curve_strand_u" with semantic type CLOSESTHIT has 1 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 188 basic block(s), 4067 instruction(s)
Info: Entry function "__closesthit__curve_segment_u" with semantic type CLOSESTHIT has 1 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 190 basic block(s), 4060 instruction(s)
Info: Entry function "__closesthit__curve_strand_idx" with semantic type CLOSESTHIT has 1 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 187 basic block(s), 4128 instruction(s)
Info: 7 non-entry function(s) have 42 basic block(s), 647 instruction(s)

[ 4][   DISKCACHE]: Cache miss for key: ptx-172673-key52197d6e165281fc6b70d9b759217986-sm_61-rtc0-drv460.20
[ 2][COMPILE FEEDBACK]: COMPILE ERROR: Module compilation failed
Info: Pipeline parameter "params" size is 128 bytes
Info: Removed function _Z16getLocalGeometryRK12GeometryData after inlining.
Info: Configured attribute value count 1 is below the minimum of 2, using minimum instead.
Info: Module uses 4 payload values. Pipeline configuration: 4.
Info: Module uses 0 attribute values. Pipeline configuration: 2 (default).
Info: Entry function "__raygen__pinhole" with semantic type RAYGEN has 1 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 12 basic block(s), 238 instruction(s)
Info: Entry function "__miss__constant_radiance" with semantic type MISS has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 2 basic block(s), 11 instruction(s)
Info: Entry function "__closesthit__occlusion" with semantic type CLOSESTHIT has 0 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 2 basic block(s), 3 instruction(s)
Info: Entry function "__closesthit__radiance" with semantic type CLOSESTHIT has 1 trace call(s), 0 continuation callable call(s), 0 direct callable call(s), 105 basic block(s), 2182 instruction(s)
Info: 7 non-entry function(s) have 42 basic block(s), 647 instruction(s)

Caught exception: OPTIX_ERROR_INTERNAL_COMPILER_ERROR: Optix call 'optixModuleCreateFromPTX( context, &defaultOptions, &pipeOptions, ptx.c_str(), ptx.size(), LOG, &LOG_SIZE, &m_whittedModule )' failed: c:\programdata\nvidia corporation\optix sdk 7.1.0\sdk\optixhair\programgroups.cpp:110)
Log:
COMPILE ERROR: Module compilation failed
Info: Pipeline parameter "params" size is 128 bytes
Info: Removed function _Z16getLocalGeometryRK12GeometryData after inlining.
Info: Configured attribute value count 1 is below the minimum of 2, using minimum instead.
Info: Module uses 4 payload values. Pipeline configuration: 4.
Info: Module uses 0 attribute values. Pipeline configuration: 2 (default).
I<TRUNCATED>

Thanks a lot! I’ll file a bug report for analysis.

Just to let you know, I recompiled with 7.2 SDK and the behavior is the same, module compilation fails with 460.20 and works well with 460.15.