Error: OpenCl viewport render doesn't work

Use this forum for general user support and related questions.
User avatar
Dade
Developer
Developer
Posts: 2816
Joined: Mon Dec 04, 2017 8:36 pm

Re: Error: OpenCl viewport render doesn't work

Post by Dade » Mon Jul 22, 2019 9:10 am

kintuX wrote:
Mon Jul 22, 2019 5:52 am
RT OCL is broken here too.
But in my case Blender simply stops responding. Need to force close.
It doesn't sound as the same problem, does it happen with the new fix ? Only with RTPATHOCL and not with with PATHOCL ?
Support LuxCoreRender project with salts and bounties

kintuX
Posts: 434
Joined: Wed Jan 10, 2018 2:37 am

Re: Error: OpenCl viewport render doesn't work

Post by kintuX » Mon Jul 22, 2019 1:35 pm

Dade wrote:
Mon Jul 22, 2019 9:10 am
kintuX wrote:
Mon Jul 22, 2019 5:52 am
RT OCL is broken here too.
But in my case Blender simply stops responding. Need to force close.
It doesn't sound as the same problem, does it happen with the new fix ? Only with RTPATHOCL and not with with PATHOCL ?
Happens only with RT OCL in viewport. (Yesterday's build, i see there are now couple of new fixes in - will test again)
I saw this post and some other mentions and decided to give it a test.
I rarely use it, since with decent CPU core count it's just impractical for fast previews.

Got this from console:

Code: Select all

...
[LuxRays][63.672] [Device GeForce GTX 1070 Intersect] SampleData buffer size: 1152Kbytes
[LuxRays][63.672] [Device GeForce GTX 1070 Intersect] PathVolumeInfo buffer size: 6336Kbytes
[LuxRays][63.672] [Device GeForce GTX 1070 Intersect] DirectLightVolumeInfo buffer size: 6336Kbytes
[LuxRays][63.672] [Device GeForce GTX 1070 Intersect] Pixel Filter Distribution buffer size: 33Kbytes
[LuxCore][63.672] [PathOCLBaseRenderThread::0] Defined symbols:  -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL -D RENDER_ENGINE_RTPATHOCL -D PARAM_RAY_EPSILON_MIN=1.000000e-05f -D PARAM_RAY_EPSILON_MAX=1.000000e-01f -D PARAM_LIGHT_WORLD_RADIUS_SCALE=1.050000e+00f -D PARAM_ACCEL_MBVH -D PARAM_FILM_RADIANCE_GROUP_0 -D PARAM_FILM_RADIANCE_GROUP_1 -D PARAM_FILM_RADIANCE_GROUP_COUNT=2 -D PARAM_ENABLE_TEX_CONST_FLOAT -D PARAM_ENABLE_TEX_CONST_FLOAT3 -D PARAM_ENABLE_TEX_IMAGEMAP -D PARAM_ENABLE_TEX_NORMALMAP -D PARAM_ENABLE_TEX_FRESNELCOLOR -D PARAM_ENABLE_TEX_FRESNELCONST -D PARAM_ENABLE_MAT_MATTE -D PARAM_ENABLE_MAT_ROUGHMATTE -D PARAM_ENABLE_MAT_MIRROR -D PARAM_ENABLE_MAT_GLASS -D PARAM_ENABLE_MAT_ARCHGLASS -D PARAM_ENABLE_MAT_NULL -D PARAM_ENABLE_MAT_MATTETRANSLUCENT -D PARAM_ENABLE_MAT_ROUGHMATTETRANSLUCENT -D PARAM_ENABLE_MAT_GLOSSY2 -D PARAM_ENABLE_MAT_GLOSSY2_ABSORPTION -D PARAM_ENABLE_MAT_GLOSSY2_INDEX -D PARAM_ENABLE_MAT_GLOSSY2_MULTIBOUNCE -D PARAM_ENABLE_MAT_METAL2 -D PARAM_ENABLE_MAT_ROUGHGLASS -D PARAM_ENABLE_MAT_CLEAR_VOL -D PARAM_ENABLE_MAT_HOMOGENEOUS_VOL -D PARAM_ENABLE_MAT_GLOSSYTRANSLUCENT -D PARAM_HAS_PASSTHROUGH -D PARAM_CAMERA_TYPE=0 -D PARAM_HAS_INFINITELIGHT -D PARAM_HAS_CONSTANTINFINITELIGHT -D PARAM_HAS_SKYLIGHT2 -D PARAM_HAS_SUNLIGHT -D PARAM_HAS_SHARPDISTANTLIGHT -D PARAM_HAS_DISTANTLIGHT -D PARAM_HAS_POINTLIGHT -D PARAM_HAS_MAPPOINTLIGHT -D PARAM_HAS_SPOTLIGHT -D PARAM_HAS_PROJECTIONLIGHT -D PARAM_HAS_LASERLIGHT -D PARAM_HAS_TRIANGLELIGHT -D PARAM_HAS_SPHERELIGHT -D PARAM_HAS_MAPSPHERELIGHT -D PARAM_HAS_ENVLIGHTS -D PARAM_HAS_IMAGEMAPS -D PARAM_IMAGEMAPS_PAGE_0 -D PARAM_IMAGEMAPS_COUNT=1 -D PARAM_HAS_IMAGEMAPS_BYTE_FORMAT -D PARAM_HAS_IMAGEMAPS_HALF_FORMAT -D PARAM_HAS_IMAGEMAPS_FLOAT_FORMAT -D PARAM_HAS_IMAGEMAPS_1xCHANNELS -D PARAM_HAS_IMAGEMAPS_3xCHANNELS -D PARAM_HAS_IMAGEMAPS_WRAP_REPEAT -D PARAM_HAS_BUMPMAPS -D PARAM_HAS_VOLUMES -D SCENE_DEFAULT_VOLUME_INDEX=4294967295 -D PARAM_MAX_PATH_DEPTH=9 -D PARAM_MAX_PATH_DEPTH_DIFFUSE=6 -D PARAM_MAX_PATH_DEPTH_GLOSSY=7 -D PARAM_MAX_PATH_DEPTH_SPECULAR=7 -D PARAM_RR_DEPTH=3 -D PARAM_RR_CAP=5.000000e-01f -D PARAM_SQRT_VARIANCE_CLAMP_MAX_VALUE=1.000000e+05f -D PARAM_IMAGE_FILTER_TYPE=2 -D PARAM_IMAGE_FILTER_WIDTH_X=1.500000e+00f -D PARAM_IMAGE_FILTER_WIDTH_Y=1.500000e+00f -D PARAM_IMAGE_FILTER_PIXEL_WIDTH_X=1 -D PARAM_IMAGE_FILTER_PIXEL_WIDTH_Y=1 -D PARAM_IMAGE_FILTER_GAUSSIAN_ALPHA=2.000000e+00f -D PARAM_USE_PIXEL_ATOMICS -D PARAM_HYBRID_BACKFORWARD -D PARAM_HYBRID_BACKFORWARD_GLOSSINESSTHRESHOLD=1.000000e-01f -D PARAM_SAMPLER_TYPE=3 -D PARAM_ELVC_GLOSSINESSTHRESHOLD=0.0f -D PARAM_RTPATHOCL_PREVIEW_RESOLUTION_REDUCTION=4 -D PARAM_RTPATHOCL_PREVIEW_RESOLUTION_REDUCTION_STEP=8 -D PARAM_RTPATHOCL_RESOLUTION_REDUCTION=1 -D LUXCORE_NVIDIA_OPENCL
[LuxCore][63.672] [PathOCLBaseRenderThread::0] Compiling kernels
[LuxCore][63.813] [PathOCLBaseRenderThread::0] PathOCL kernel compilation error
ERROR clBuildProgram[CL_BUILD_PROGRAM_FAILURE]:
<kernel>:9414:30: warning: passing 'const __global float *' to parameter of type '__global float *' discards qualifiers
        VSTORE3F(origP + uu * dpdu, &hitPoint->p.x);
                                    ^~~~~~~~~~~~~~
<kernel>:94:47: note: passing argument to parameter 'p' here
void VSTORE3F(const float3 v, __global float *p) {
                                              ^
<kernel>:9415:17: error: read-only variable is not assignable
        hitPoint->uv.u += uu;
        ~~~~~~~~~~~~~~ ^
<kernel>:9416:46: warning: passing 'const __global float *' to parameter of type '__global float *' discards qualifiers
        VSTORE3F(normalize(origShadeN + uu * dndu), &hitPoint->shadeN.x);
                                                    ^~~~~~~~~~~~~~~~~~~
<kernel>:94:47: note: passing argument to parameter 'p' here
void VSTORE3F(const float3 v, __global float *p) {
                                              ^
<kernel>:9423:30: warning: passing 'const __global float *' to parameter of type '__global float *' discards qualifiers
        VSTORE3F(origP + vv * dpdv, &hitPoint->p.x);
                                    ^~~~~~~~~~~~~~
<kernel>:94:47: note: passing argument to parameter 'p' here
void VSTORE3F(const float3 v, __global float *p) {
                                              ^
<kernel>:9424:17: error: read-only variable is not assignable
        hitPoint->uv.u = origUV.s0;
        ~~~~~~~~~~~~~~ ^
<kernel>:9425:17: error: read-only variable is not assignable
        hitPoint->uv.v += vv;
        ~~~~~~~~~~~~~~ ^
<kernel>:9426:46: warning: passing 'const __global float *' to parameter of type '__global float *' discards qualifiers
        VSTORE3F(normalize(origShadeN + vv * dndv), &hitPoint->shadeN.x);
                                                    ^~~~~~~~~~~~~~~~~~~
<kernel>:94:47: note: passing argument to parameter 'p' here
void VSTORE3F(const float3 v, __global float *p) {
                                              ^
<kernel>:9432:18: warning: passing 'const __global float *' to parameter of type '__global float *' discards qualifiers
        VSTORE3F(origP, &hitPoint->p.x);
                        ^~~~~~~~~~~~~~
<kernel>:94:47: note: passing argument to parameter 'p' here
void VSTORE3F(const float3 v, __global float *p) {
                                              ^
<kernel>:9433:19: warning: passing 'const __global float *' to parameter of type '__global float *' discards qualifiers
        VSTORE2F(origUV, &hitPoint->uv.u);
                         ^~~~~~~~~~~~~~~
<kernel>:82:47: note: passing argument to parameter 'p' here
void VSTORE2F(const float2 v, __global float *p) {
                                              ^
<kernel>:14913:20: warning: passing 'const __global float *' to parameter of type '__global float *' discards qualifiers
                VSTORE3F(shadeN, &hitPoint->shadeN.x);
                                 ^~~~~~~~~~~~~~~~~~~
<kernel>:94:47: note: passing argument to parameter 'p' here
void VSTORE3F(const float3 v, __global float *p) {
                                              ^
<kernel>:14914:18: warning: passing 'const __global float *' to parameter of type '__global float *' discards qualifiers
                VSTORE3F(dpdu, &hitPoint->dpdu.x);
                               ^~~~~~~~~~~~~~~~~
<kernel>:94:47: note: passing argument to parameter 'p' here
void VSTORE3F(const float3 v, __global float *p) {
                                              ^
<kernel>:14915:18: warning: passing 'const __global float *' to parameter of type '__global float *' discards qualifiers
                VSTORE3F(dpdv, &hitPoint->dpdv.x);
                               ^~~~~~~~~~~~~~~~~
<kernel>:94:47: note: passing argument to parameter 'p' here
void VSTORE3F(const float3 v, __global float *p) {
                                              ^
<kernel>:17195:63: error: passing 'const __attribute__((address_space(16776963))) float3' to parameter of incompatible type 'const __global BSDF *'
        const float3 result = SphereLight_Illuminate(mapSphereLight, p, u0, u1,
                                                                     ^
<kernel>:17098:24: note: passing argument to parameter 'bsdf' here
                __global const BSDF *bsdf, const float u0, const float u1,
                                     ^
EDIT (Latest build)
Console report:

Code: Select all

...
[LuxRays][27.171] [Device GeForce GTX 1070 Intersect] Pixel Filter Distribution buffer size: 33Kbytes
[LuxCore][27.171] [PathOCLBaseRenderThread::0] Defined symbols:  -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL -D RENDER_ENGINE_RTPATHOCL -D PARAM_RAY_EPSILON_MIN=1.000000e-05f -D PARAM_RAY_EPSILON_MAX=1.000000e-01f -D PARAM_LIGHT_WORLD_RADIUS_SCALE=1.050000e+00f -D PARAM_ACCEL_MBVH -D PARAM_FILM_RADIANCE_GROUP_0 -D PARAM_FILM_RADIANCE_GROUP_1 -D PARAM_FILM_RADIANCE_GROUP_COUNT=2 -D PARAM_ENABLE_TEX_CONST_FLOAT -D PARAM_ENABLE_TEX_CONST_FLOAT3 -D PARAM_ENABLE_TEX_IMAGEMAP -D PARAM_ENABLE_TEX_NORMALMAP -D PARAM_ENABLE_TEX_FRESNELCOLOR -D PARAM_ENABLE_TEX_FRESNELCONST -D PARAM_ENABLE_MAT_MATTE -D PARAM_ENABLE_MAT_ROUGHMATTE -D PARAM_ENABLE_MAT_MIRROR -D PARAM_ENABLE_MAT_GLASS -D PARAM_ENABLE_MAT_ARCHGLASS -D PARAM_ENABLE_MAT_NULL -D PARAM_ENABLE_MAT_MATTETRANSLUCENT -D PARAM_ENABLE_MAT_ROUGHMATTETRANSLUCENT -D PARAM_ENABLE_MAT_GLOSSY2 -D PARAM_ENABLE_MAT_GLOSSY2_ABSORPTION -D PARAM_ENABLE_MAT_GLOSSY2_INDEX -D PARAM_ENABLE_MAT_GLOSSY2_MULTIBOUNCE -D PARAM_ENABLE_MAT_METAL2 -D PARAM_ENABLE_MAT_ROUGHGLASS -D PARAM_ENABLE_MAT_CLEAR_VOL -D PARAM_ENABLE_MAT_HOMOGENEOUS_VOL -D PARAM_ENABLE_MAT_GLOSSYTRANSLUCENT -D PARAM_HAS_PASSTHROUGH -D PARAM_CAMERA_TYPE=0 -D PARAM_HAS_INFINITELIGHT -D PARAM_HAS_CONSTANTINFINITELIGHT -D PARAM_HAS_SKYLIGHT2 -D PARAM_HAS_SUNLIGHT -D PARAM_HAS_SHARPDISTANTLIGHT -D PARAM_HAS_DISTANTLIGHT -D PARAM_HAS_POINTLIGHT -D PARAM_HAS_MAPPOINTLIGHT -D PARAM_HAS_SPOTLIGHT -D PARAM_HAS_PROJECTIONLIGHT -D PARAM_HAS_LASERLIGHT -D PARAM_HAS_TRIANGLELIGHT -D PARAM_HAS_SPHERELIGHT -D PARAM_HAS_MAPSPHERELIGHT -D PARAM_HAS_ENVLIGHTS -D PARAM_HAS_IMAGEMAPS -D PARAM_IMAGEMAPS_PAGE_0 -D PARAM_IMAGEMAPS_COUNT=1 -D PARAM_HAS_IMAGEMAPS_BYTE_FORMAT -D PARAM_HAS_IMAGEMAPS_HALF_FORMAT -D PARAM_HAS_IMAGEMAPS_FLOAT_FORMAT -D PARAM_HAS_IMAGEMAPS_1xCHANNELS -D PARAM_HAS_IMAGEMAPS_3xCHANNELS -D PARAM_HAS_IMAGEMAPS_WRAP_REPEAT -D PARAM_HAS_BUMPMAPS -D PARAM_HAS_VOLUMES -D SCENE_DEFAULT_VOLUME_INDEX=4294967295 -D PARAM_MAX_PATH_DEPTH=9 -D PARAM_MAX_PATH_DEPTH_DIFFUSE=6 -D PARAM_MAX_PATH_DEPTH_GLOSSY=7 -D PARAM_MAX_PATH_DEPTH_SPECULAR=7 -D PARAM_RR_DEPTH=3 -D PARAM_RR_CAP=5.000000e-01f -D PARAM_SQRT_VARIANCE_CLAMP_MAX_VALUE=1.000000e+05f -D PARAM_IMAGE_FILTER_TYPE=2 -D PARAM_IMAGE_FILTER_WIDTH_X=1.500000e+00f -D PARAM_IMAGE_FILTER_WIDTH_Y=1.500000e+00f -D PARAM_IMAGE_FILTER_PIXEL_WIDTH_X=1 -D PARAM_IMAGE_FILTER_PIXEL_WIDTH_Y=1 -D PARAM_IMAGE_FILTER_GAUSSIAN_ALPHA=2.000000e+00f -D PARAM_USE_PIXEL_ATOMICS -D PARAM_HYBRID_BACKFORWARD -D PARAM_HYBRID_BACKFORWARD_GLOSSINESSTHRESHOLD=1.000000e-01f -D PARAM_SAMPLER_TYPE=3 -D PARAM_ELVC_GLOSSINESSTHRESHOLD=0.0f -D PARAM_RTPATHOCL_PREVIEW_RESOLUTION_REDUCTION=4 -D PARAM_RTPATHOCL_PREVIEW_RESOLUTION_REDUCTION_STEP=8 -D PARAM_RTPATHOCL_RESOLUTION_REDUCTION=1 -D LUXCORE_NVIDIA_OPENCL
[LuxCore][27.171] [PathOCLBaseRenderThread::0] Compiling kernels
[LuxCore][27.328] [PathOCLBaseRenderThread::0] PathOCL kernel compilation error
ERROR clBuildProgram[CL_BUILD_PROGRAM_FAILURE]:
<kernel>:17195:63: error: passing 'const __attribute__((address_space(16776963))) float3' to parameter of incompatible type 'const __global BSDF *'
        const float3 result = SphereLight_Illuminate(mapSphereLight, p, u0, u1,
                                                                     ^
<kernel>:17098:24: note: passing argument to parameter 'bsdf' here
                __global const BSDF *bsdf, const float u0, const float u1,
                                     ^


User avatar
Dade
Developer
Developer
Posts: 2816
Joined: Mon Dec 04, 2017 8:36 pm

Re: Error: OpenCl viewport render doesn't work

Post by Dade » Mon Jul 22, 2019 1:57 pm

kintuX wrote:
Mon Jul 22, 2019 1:35 pm
EDIT (Latest build)
Console report:
I should have now fixed this too.
Support LuxCoreRender project with salts and bounties

kintuX
Posts: 434
Joined: Wed Jan 10, 2018 2:37 am

Re: Error: OpenCl viewport render doesn't work

Post by kintuX » Mon Jul 22, 2019 2:10 pm

Dade wrote:
Mon Jul 22, 2019 1:57 pm
kintuX wrote:
Mon Jul 22, 2019 1:35 pm
EDIT (Latest build)
Console report:
I should have now fixed this too.
Yes, it works now :D man, you're the greatest!

johannes.wilde
Posts: 16
Joined: Fri Sep 21, 2018 7:57 am

Re: Error: OpenCl viewport render doesn't work

Post by johannes.wilde » Mon Jul 22, 2019 10:02 pm

Thank you, man!
It works, even the viewport denoising works now.

Post Reply