Error: OpenCl viewport render doesn't work
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
-
- Posts: 68
- Joined: Fri Sep 21, 2018 7:57 am
Error: OpenCl viewport render doesn't work
Hey there,
i can't figure out why my OpenCL viewport doesn't work, while final render works fine.
I tried it with 2.2beta2 and latest builds.
The console gives me this error output:
[PathOCLBaseRenderThread::0] Compiling kernels
[PathOCLBaseRenderThread::0] PathOCL kernel compilation error
ERROR clBuildProgram[CL_BUILD_PROGRAM_FAILURE]:
<kernel>88: error: too few arguments to function call, expected 11, have 10
Maybe someone can help me with this?
Cheers,
Johannes
i can't figure out why my OpenCL viewport doesn't work, while final render works fine.
I tried it with 2.2beta2 and latest builds.
The console gives me this error output:
[PathOCLBaseRenderThread::0] Compiling kernels
[PathOCLBaseRenderThread::0] PathOCL kernel compilation error
ERROR clBuildProgram[CL_BUILD_PROGRAM_FAILURE]:
<kernel>88: error: too few arguments to function call, expected 11, have 10
Maybe someone can help me with this?
Cheers,
Johannes
Re: Error: OpenCl viewport render doesn't work
I think it has been fixed, have you tried a daily build (viewtopic.php?f=9&t=736) ?
-
- Posts: 68
- Joined: Fri Sep 21, 2018 7:57 am
Re: Error: OpenCl viewport render doesn't work
Wow!
That's a fast reply!
I already have installed the newest builds. It does not work in my case.
It hangs with the same message.
That's a fast reply!
I already have installed the newest builds. It does not work in my case.
It hangs with the same message.
Re: Error: OpenCl viewport render doesn't work
Is there more to the log? Usually it should contain a traceback with the line of code that's failing.
-
- Posts: 68
- Joined: Fri Sep 21, 2018 7:57 am
Re: Error: OpenCl viewport render doesn't work
[LuxCore][31.359] [PathOCLBaseRenderThread::0] Compiling kernels
[LuxCore][31.500] [PathOCLBaseRenderThread::0] PathOCL kernel compilation error
ERROR clBuildProgram[CL_BUILD_PROGRAM_FAILURE]:
<kernel>6: error: expected ')'
bsdf,
^
<kernel>33: note: to match this '('
return SphereLight_Illuminate(
^
Traceback (most recent call last):
File "C:\Users\JXXs\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\BlendLuxCoreLatest\engine\__init__.py", line 114, in view_update
viewport.view_update(self, context)
File "C:\Users\JXXs\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\BlendLuxCoreLatest\engine\viewport.py", line 47, in view_update
engine.session = engine.exporter.update(context, engine.session, changes)
File "C:\Users\JXXs\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\BlendLuxCoreLatest\export\__init__.py", line 257, in update
session = self._update_config(session, self.config_cache.props)
File "C:\Users\JXXs\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\BlendLuxCoreLatest\export\__init__.py", line 358, in _update_config
session.Start()
RuntimeError: PathOCLBase kernel compilation error
location: <unknown location>:-1
location: <unknown location>:-1
[Engine/Viewport] Pausing session
[LuxCore][31.500] [PathOCLBaseRenderThread::0] PathOCL kernel compilation error
ERROR clBuildProgram[CL_BUILD_PROGRAM_FAILURE]:
<kernel>6: error: expected ')'
bsdf,
^
<kernel>33: note: to match this '('
return SphereLight_Illuminate(
^
Traceback (most recent call last):
File "C:\Users\JXXs\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\BlendLuxCoreLatest\engine\__init__.py", line 114, in view_update
viewport.view_update(self, context)
File "C:\Users\JXXs\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\BlendLuxCoreLatest\engine\viewport.py", line 47, in view_update
engine.session = engine.exporter.update(context, engine.session, changes)
File "C:\Users\JXXs\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\BlendLuxCoreLatest\export\__init__.py", line 257, in update
session = self._update_config(session, self.config_cache.props)
File "C:\Users\JXXs\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\BlendLuxCoreLatest\export\__init__.py", line 358, in _update_config
session.Start()
RuntimeError: PathOCLBase kernel compilation error
location: <unknown location>:-1
location: <unknown location>:-1
[Engine/Viewport] Pausing session
-
- Posts: 68
- Joined: Fri Sep 21, 2018 7:57 am
Re: Error: OpenCl viewport render doesn't work
Hey there!
Thanks for the update, but it produces some new error- This is the output i get:
<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>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>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>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) {
^
Thanks for the update, but it produces some new error- This is the output i get:
<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>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>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>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) {
^
Re: Error: OpenCl viewport render doesn't work
RT OCL is broken here too.
But in my case Blender simply stops responding. Need to force close.
But in my case Blender simply stops responding. Need to force close.
Re: Error: OpenCl viewport render doesn't work
The same here!
Blender sometimes hangs up and if I try to make a render I have this error.
This after downloading the latest BlendLuxCore from maintenance branch and latest luxcore openCl build
Blender sometimes hangs up and if I try to make a render I have this error.
This after downloading the latest BlendLuxCore from maintenance branch and latest luxcore openCl build
Code: Select all
[LuxRays][89.045] [Device Quadro K5200 Intersect] Pixel Filter Distribution buff
er size: 33Kbytes
[LuxCore][89.045] [PathOCLBaseRenderThread::0] Defined symbols: -D LUXRAYS_OPEN
CL_KERNEL -D SLG_OPENCL_KERNEL -D RENDER_ENGINE_PATHOCL -D PARAM_RAY_EPSILON_MIN
=1.000000e-05f -D PARAM_RAY_EPSILON_MAX=1.000000e-01f -D PARAM_LIGHT_WORLD_RADIU
S_SCALE=1.050000e+00f -D PARAM_ACCEL_MBVH -D PARAM_FILM_RADIANCE_GROUP_0 -D PARA
M_FILM_RADIANCE_GROUP_COUNT=1 -D PARAM_FILM_CHANNELS_HAS_ALBEDO -D PARAM_FILM_CH
ANNELS_HAS_AVG_SHADING_NORMAL -D PARAM_FILM_CHANNELS_HAS_NOISE -D PARAM_ENABLE_T
EX_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_TEX_HSV -D PARAM_ENABLE_MAT_MATTE -D PARAM_ENABLE_M
AT_MIRROR -D PARAM_ENABLE_MAT_ARCHGLASS -D PARAM_ENABLE_MAT_MIX -D PARAM_ENABLE_
MAT_NULL -D PARAM_ENABLE_MAT_GLOSSY2 -D PARAM_ENABLE_MAT_METAL2 -D PARAM_ENABLE_
MAT_ROUGHGLASS -D PARAM_HAS_PASSTHROUGH -D PARAM_CAMERA_TYPE=0 -D PARAM_HAS_SPOT
LIGHT -D PARAM_HAS_TRIANGLELIGHT -D PARAM_HAS_IMAGEMAPS -D PARAM_IMAGEMAPS_PAGE_
0 -D PARAM_IMAGEMAPS_COUNT=1 -D PARAM_HAS_IMAGEMAPS_BYTE_FORMAT -D PARAM_HAS_IMA
GEMAPS_FLOAT_FORMAT -D PARAM_HAS_IMAGEMAPS_3xCHANNELS -D PARAM_HAS_IMAGEMAPS_WRA
P_REPEAT -D PARAM_HAS_BUMPMAPS -D PARAM_HAS_VOLUMES -D SCENE_DEFAULT_VOLUME_INDE
X=4294967295 -D PARAM_MAX_PATH_DEPTH=7 -D PARAM_MAX_PATH_DEPTH_DIFFUSE=5 -D PARA
M_MAX_PATH_DEPTH_GLOSSY=5 -D PARAM_MAX_PATH_DEPTH_SPECULAR=6 -D PARAM_RR_DEPTH=3
-D PARAM_RR_CAP=5.000000e-01f -D PARAM_SQRT_VARIANCE_CLAMP_MAX_VALUE=1.236033e+
06f -D PARAM_IMAGE_FILTER_TYPE=5 -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_SAMPLER_TYPE=2 -D PARAM_SAMPLER_SO
BOL_STARTOFFSET=32 -D PARAM_PGIC_ENABLED -D PARAM_PGIC_DEBUG_NONE -D PARAM_PGIC_
INDIRECT_ENABLED -D PARAM_ELVC_GLOSSINESSTHRESHOLD=0.0f -D LUXCORE_NVIDIA_OPENCL
[LuxCore][89.045] [PathOCLBaseRenderThread::0] Compiling kernels
[LuxCore][89.170] [PathOCLBaseRenderThread::0] PathOCL kernel compilation error
ERROR clBuildProgram[CL_BUILD_PROGRAM_FAILURE]:
<kernel>:9441:30: warning: passing 'const __global float *' to parameter of type
'__global float *' discards qualifiers
VSTORE3F(origP + uu * dpdu, &hitPoint->p.x);
^~~~~~~~~~~~~~
<kernel>:97:47: note: passing argument to parameter 'p' here
void VSTORE3F(const float3 v, __global float *p) {
^
<kernel>:9442:17: error: read-only variable is not assignable
hitPoint->uv.u += uu;
~~~~~~~~~~~~~~ ^
<kernel>:9443:46: warning: passing 'const __global float *' to parameter of type
'__global float *' discards qualifiers
VSTORE3F(normalize(origShadeN + uu * dndu), &hitPoint->shadeN.x);
^~~~~~~~~~~~~~~~~~~
<kernel>:97:47: note: passing argument to parameter 'p' here
void VSTORE3F(const float3 v, __global float *p) {
^
<kernel>:9450:30: warning: passing 'const __global float *' to parameter of type
'__global float *' discards qualifiers
VSTORE3F(origP + vv * dpdv, &hitPoint->p.x);
^~~~~~~~~~~~~~
<kernel>:97:47: note: passing argument to parameter 'p' here
void VSTORE3F(const float3 v, __global float *p) {
^
<kernel>:9451:17: error: read-only variable is not assignable
hitPoint->uv.u = origUV.s0;
~~~~~~~~~~~~~~ ^
<kernel>:9452:17: error: read-only variable is not assignable
hitPoint->uv.v += vv;
~~~~~~~~~~~~~~ ^
<kernel>:9453:46: warning: passing 'const __global float *' to parameter of type
'__global float *' discards qualifiers
VSTORE3F(normalize(origShadeN + vv * dndv), &hitPoint->shadeN.x);
^~~~~~~~~~~~~~~~~~~
<kernel>:97:47: note: passing argument to parameter 'p' here
void VSTORE3F(const float3 v, __global float *p) {
^
<kernel>:9459:18: warning: passing 'const __global float *' to parameter of type
'__global float *' discards qualifiers
VSTORE3F(origP, &hitPoint->p.x);
^~~~~~~~~~~~~~
<kernel>:97:47: note: passing argument to parameter 'p' here
void VSTORE3F(const float3 v, __global float *p) {
^
<kernel>:9460:19: warning: passing 'const __global float *' to parameter of type
'__global float *' discards qualifiers
VSTORE2F(origUV, &hitPoint->uv.u);
^~~~~~~~~~~~~~~
<kernel>:85:47: note: passing argument to parameter 'p' here
void VSTORE2F(const float2 v, __global float *p) {
^
<kernel>:15275:20: warning: passing 'const __global float *' to parameter of typ
e '__global float *' discards qualifiers
VSTORE3F(shadeN, &hitPoint->shadeN.x);
^~~~~~~~~~~~~~~~~~~
<kernel>:97:47: note: passing argument to parameter 'p' here
void VSTORE3F(const float3 v, __global float *p) {
^
<kernel>:15276:18: warning: passing 'const __global float *' to parameter of typ
e '__global float *' discards qualifiers
VSTORE3F(dpdu, &hitPoint->dpdu.x);
^~~~~~~~~~~~~~~~~
<kernel>:97:47: note: passing argument to parameter 'p' here
void VSTORE3F(const float3 v, __global float *p) {
^
<kernel>:15277:18: warning: passing 'const __global float *' to parameter of typ
e '__global float *' discards qualifiers
VSTORE3F(dpdv, &hitPoint->dpdv.x);
^~~~~~~~~~~~~~~~~
<kernel>:97:47: note: passing argument to parameter 'p' here
void VSTORE3F(const float3 v, __global float *p) {
^
Traceback (most recent call last):
File "C:\Users\XXXXXXXXX\AppData\Roaming\Blender Foundation\Blender\2.
79\scripts\addons\BlendLuxCore\engine\__init__.py", line 85, in render_final
final.render(self, scene)
File "C:\Users\XXXXXXXXX\AppData\Roaming\Blender Foundation\Blender\2.
79\scripts\addons\BlendLuxCore\engine\final.py", line 40, in render
_render_layer(engine, scene, render_slot_stats)
File "C:\Users\XXXXXXXXX\AppData\Roaming\Blender Foundation\Blender\2.
79\scripts\addons\BlendLuxCore\engine\final.py", line 63, in _render_layer
engine.session.Start()
RuntimeError: PathOCLBase kernel compilation error
ERROR: PathOCLBase kernel compilation error
Re: Error: OpenCl viewport render doesn't work
I should have fixed this problem too, it was introduced in the last patch and it was related to the usage of normal/bump mapping.