OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1719 Discussions

V-Ray fails to compile for Intel HD 4400 and probably any iGPU due to common runtime.

USRDSM_D_
Beginner
1,601 Views

Reading the V-Ray output log it is clear it fails to compile the raytracer for Intel HD 4400 OpenCL runtime. It doesn't matter the scene's complexity it happens always.

 

Qt: Untested Windows version 6.3 detected!
Successfully initialized spawner. Waiting for jobs...
Received TM_START_RENDER from 127.0.0.1
Starting DR session from 127.0.0.1
Receiving DR scene from 127.0.0.1
[DR] getting sequence data...
[DR] Calling beginSeqeunce()
Preparing renderer...
Preparing scene for rendering...
OpenCL renderer requested.
loadLibrary(C:\ProgramData\ASGVIS\Common\x64\vc10\Distributed Rendering\rt_opencl.dll)
Found plugin "RTOpenCL"
Plugin library "C:\ProgramData\ASGVIS\Common\x64\vc10\Distributed Rendering\rt_opencl.dll" loaded.
1 plugin(s) loaded successfully
OpenCL renderer plugin successfully loaded from "C:\ProgramData\ASGVIS\Common\x64\vc10\Distributed Rendering\rt_opencl.dll"
OpenCL renderer plugin instance successfully created.
EXT_RTOPENCL interface obtained successfully from OpenCL renderer plugin instance.
[DR] getting frame data...
[DR] frame number is 0
[DR] Calling beginFrame()
Preparing camera sampler.
Preparing scene for frame...
Compiling geometry...
Preparing ray server.
        Building SDTree for GPU
        Building SDTree for GPU
        Scene is empty.
Preparing direct light manager.
Preparing global light manager.
[DR] Calling renderImage()
Running RTEngine
Initializing OpenCL renderer (single kernel version)...
Querying for OpenCL devices...
Environment variable VRAY_OPENCL_PLATFORMS_x64 not found - using all available devices
Found 2 OpenCL platforms
Using the following OpenCL devices:
Intel(R) OpenCL Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz
Intel(R) OpenCL Intel(R) HD Graphics 4400
NVIDIA CUDA GeForce GT 750M
CPU TUPLE SIZE = 2
Using memory buffers for textures
Using global ray states
cl_nv_compiler_options extension not found.
Building OpenCL trace program for device Intel(R) OpenCL_Intel(R) HD Graphics 4400...
Error Program build failure (-11) at line 1467 , in file ./src/opencl_main.cpp !!!

Failed to compile OpenCL kernels, falling back to CPU code.
buildProgram() failed for device 0
initDevices() failed.
Number of lights: 0
Number of area lights: 0
Number of moving area lights: 0
Total number of lights added by updateLights(): 0
Setting up 4 thread(s)
        Number of raycasts: 0
         Camera rays: 0
         Shadow rays: 0
         GI rays: 0
         Reflection rays: 0
         Refraction rays: 0
         Unshaded rays: 0
        Clearing global light manager.
        Clearing direct light manager.
        Clearing ray server.
        Clearing geometry.
        Number of intersectable primitives: 0
         SD triangles: 0
         MB triangles: 0
         Static primitives: 0
         Moving primitives: 0
         Infinite primitives: 0
        Clearing camera image sampler.
        Clearing camera sampler.
        Clearing DMC sampler.
        Clearing path sampler.
        Clearing color mapper.
        Scene constructed in 4.9 seconds
        Preparing renderer...
        Preparing scene for rendering...
        [RenderView] startCameraTime=0.000000, endCameraTime=1.033333
        [RenderView] numCameraTMs=62, numFrames=31, frameSamples=2
        OpenCL renderer requested.
        OpenCL renderer plugin already loaded.
        OpenCL renderer plugin instance successfully created.
        EXT_RTOPENCL interface obtained successfully from OpenCL renderer plugin instance.
        [RenderView] startCameraTime=0.000000, endCameraTime=1.033333
        [RenderView] numCameraTMs=62, numFrames=31, frameSamples=2
        Preparing camera sampler.
        Preparing scene for frame...
        Compiling geometry...
        Preparing ray server.
                Building SDTree for GPU
                Building SDTree for GPU
                Scene bounding box is [-28.7711,-29.052,3.27523]-[28.1591,30.7112,197.953]
        Preparing direct light manager.
        Preparing global light manager.
        Number of lights: 2
        Number of area lights: 0
        Number of moving area lights: 0
        Total number of lights added by updateLights(): 1
Writing crash dump to "C:\Users\(*)\AppData\Local\Temp\VRay.dmp"

0 Kudos
5 Replies
Robert_I_Intel
Employee
1,602 Views

Hi,

Could you clarify what V-Ray is, where do I get it and how do I build it?

Also, which version of Windows are you on? Are you using the latest and greatest graphics driver?

0 Kudos
USRDSM_D_
Beginner
1,602 Views

Sorry I knew this would happen maybe I was wrongly referred here to report OpenCL bugs/issues. In fact V-ray is a proprietary raytracer (CG) that in one of its modes uses OpenCL and compiles the scene to be rendered using all available OpenCL devices. The posted output log of the program reveals how the scene compilation for the IGPU (Intel HD 4400) fails while the other OpenCL devices (CPU and NVIDIA GPU) compile correctly. As this bug has been persistent till the latest available driver release for this GPU (10.18.14.4222) I was wondering if Intel was aware and/or planning on a fix for this behaviour. I would really like to use the full computing power of my computer and not just the dedicated NVIDIA GPU trough CUDA.

0 Kudos
Robert_I_Intel
Employee
1,602 Views

Hi,

In order to report this bug to our compiler/driver people I need to know detailed steps on how to reproduce this issue. For that I need to know the OS, where to obtain V-Ray and how to run it in order to reproduce this problem. Ideally, you probably first report it to V-Ray folks and they possibly can come up with a shorter reproducer and send it my way.

Step by step instructions are very important for me to reproduce and report the problem. Please provide detailed step by step instructions!

0 Kudos
USRDSM_D_
Beginner
1,602 Views

To reproduce the bug the following setup is needed:

 - Intel Graphics HD 4400 based CPU/SoC
 - Windows 8.1 64-bit
 - McNeel Rhinoceros 5.0
 - ChaosGroup V-Ray Renderer 2.0 for Rhino

Also the following steps are required:

 - Open Rhinoceros 5.0 and set V-Ray RT as default rendering engine.
 - Set V-Ray RT to use OpenCL (All available devices).
 - Launch XMLDRSpawner (C:\ProgramData\ASGVIS\Common\x64\vc10\Distributed Rendering)
 - Render a scene with a minimum of one object and light source.
 - Check the DOS based XMLDRSpawner output.

 

0 Kudos
Robert_I_Intel
Employee
1,602 Views

Hi,

You need to submit this issue to the Chaos Group, the creators of V-Ray. I am not sure if they actually tested what you are trying to do. Once they try it out on Intel hardware, they can narrow down and report the issue. From the cursory look at their web-site, doesn't look like they actually tried to run their OpenCL code on Intel(R) Processor Graphics. 

0 Kudos
Reply