Hi all,
I am getting an exception
Unknown errorwith code:-1 main error occurred with error code -1 and message Unknown error (Details: Function "RTresult _rtContextLaunch3D(RTcontext, unsigned int, RTsize, RTsize, RTsize)" caught exception: Encountered a CUDA error: cudaDriver().CuMemcpyDtoHAsync( dstHost, srcDevice, byteCount, hStream.get() ) returned (700): Illegal address ================================================================================ Backtrace: (0) () +0x711547 (1) () +0x70f8fb (2) () +0x30fe51 (3) () +0x5bb6f3 (4) () +0x5bc4c4 (5) () +0x1c81bf (6) () +0x1c8946 (7) () +0x1c9557 (8) () +0x17a92d (9) rtContextLaunch3D() +0x2e5 (10) optix::ContextObj::launch(unsigned int, unsigned long, unsigned long, unsigned long) +0x4c (11) opal::OpalSceneManager::transmit(int, float, optix::float3, optix::float3) +0x1f3 (12) seqParallelTxTest(std::unique_ptr<opal::OpalSceneManager, std::default_delete<opal::OpalSceneManager> >) +0x186e (13) main() +0x95 (14) __libc_start_main() +0xe7 (15) _start() +0x2a It seems to be related to some buffer I am accessing but I am not able to debug it after going through my code and print calls. If I set a usageReport as in the samples provided I get this WARNING:Raw pointer buffer access detected
[2][INFO ] Launch index 77. [2][SCENE STAT ] Node graph object summary: [2][SCENE STAT ] RTprogram : 20 [2][SCENE STAT ] RTbuffer : 33 [2][SCENE STAT ] RTtexturesampler : 0 [2][SCENE STAT ] RTacceleration : 3 [2][SCENE STAT ] RTgroup : 1 [2][SCENE STAT ] RTgeometrygroup : 2 [2][SCENE STAT ] RTtransform : 0 [2][SCENE STAT ] RTselector : 0 [2][SCENE STAT ] RTgeometryinstance: 6 [2][SCENE STAT ] RTgeometry : 6 [2][SCENE STAT ] Total prim: 249 [2][SCENE STAT ] RTmaterial : 2 [2][TIMING ] Acceleration update time: 0.0 ms [2][MEM USAGE ] Buffer GPU memory usage: [2][MEM USAGE ] | Category | Count | Total MByte | [2][MEM USAGE ] | buffer | 31 | 81.8 | [2][MEM USAGE ] | texture | 0 | 0.0 | [2][MEM USAGE ] | gfx interop | 0 | 0.0 | [2][MEM USAGE ] | cuda interop | 0 | 0.0 | [2][MEM USAGE ] | optix internal | 17 | 0.1 | [2][MEM USAGE ] Buffer host memory usage: 0.8 Mbytes [2][MEM USAGE ] WARNING: Raw pointer buffer access detected. [2][MEM USAGE ] Local memory for all threads (CUDA device: 0): 33.1 MBytes This is something I did not get in previous tests, so it has to be related to some changes I have done in the buffers.
How can I debug this problem? Is there any way to know what is that raw pointer access?
Thanks a lot