Fix T42160: CUDA error: ILLEGAL_ADDRESS in cuCtxSynchronize()
This is so-called GPU limitation boundary hit, told compiler to NOT include volume bound function, otherwise some real weird things used to happen. We actually might want to do the same for CPU, inlining everything is not the way to get fastest code.
This commit is contained in:
parent
1800bfb8ca
commit
fd2de82207
Notes:
blender-bot
2023-02-14 10:37:49 +01:00
Referenced by issue #42160, CUDA error: ILLEGAL_ADDRESS in cuCtxSynchronize()
|
@ -56,7 +56,12 @@ ccl_device void kernel_path_volume_connect_light(KernelGlobals *kg, RNG *rng,
|
|||
#endif
|
||||
}
|
||||
|
||||
ccl_device bool kernel_path_volume_bounce(KernelGlobals *kg, RNG *rng,
|
||||
#ifdef __KERNEL_GPU__
|
||||
ccl_device_noinline
|
||||
#else
|
||||
ccl_device
|
||||
#endif
|
||||
bool kernel_path_volume_bounce(KernelGlobals *kg, RNG *rng,
|
||||
ShaderData *sd, float3 *throughput, PathState *state, PathRadiance *L, Ray *ray)
|
||||
{
|
||||
/* sample phase function */
|
||||
|
|
Loading…
Reference in New Issue