Jump to: Board index » General » Fusion

CL_DEVICE_NOT_FOUND error in Fusion 8 under the Linux

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline

Dmitry Potrivaev

  • Posts: 13
  • Joined: Wed Jul 27, 2016 8:43 am

CL_DEVICE_NOT_FOUND error in Fusion 8 under the Linux

PostWed May 03, 2017 12:27 pm

Hi guys,

For the last half a year I run Fusion 8, now it's 8.2.1 under Ubuntu Linux 16.04 x64 and all this time I have almost no problem with it... Sometime during my work at complicated (for me :) projects I saw CL_DEVICE_NOT_FOUND error... But I don't have a huge problem with it...

I found a road block with this type of error, when I will try to use Rays node. It doesn't work completely and I see an error in the console:

OpenCL Could not find valid context: CL_DEVICE_NOT_FOUND
Rays1 failed at time 0


I run Fusion on a notebook with NVidia GeForce GT 540M video card and during my work with Fusion I switch to this card instead of build-in Intel video card (you have to do it manually under the Linux). I tried to use different NVidia's drivers for it, but none of them solved this problem. Also I think that this is not a video driver problem, because this machine works perfect with Sidefx's Houdini, for example, which uses OpenGL too...

Another thing is that under the Windows 8 on the same notebook with same configuration (I've got dual boot) Fusion 8.2.1 works perfect with Rays node...

So, maybe somebody solved such a problem and can help me with some suggestions/ideas how to settle it?

While searing the solution at this forum I saw that some guys told about tweaking OpenCL preferences in Fusion... But I don't have such an option in my Fusion Preferences at all? I run Fusion Basic, not Studio... Is it normal?

I've placed below this post an OpenCL info for my video card and driver (maybe it can help). Thank you very much, guys!

Regards,
Dmitriy
Attachments
fusion-prefs.png
fusion-prefs.png (46.62 KiB) Viewed 236 times
Offline

Dmitry Potrivaev

  • Posts: 13
  • Joined: Wed Jul 27, 2016 8:43 am

Re: CL_DEVICE_NOT_FOUND error in Fusion 8 under the Linux

PostWed May 03, 2017 12:29 pm

OpenCL information for my video card and driver:

Code: Select all
Number of platforms                               1
  Platform Name                                   NVIDIA CUDA
  Platform Vendor                                 NVIDIA Corporation
  Platform Version                                OpenCL 1.2 CUDA 8.0.0
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer
  Platform Extensions function suffix             NV

  Platform Name                                   NVIDIA CUDA
Number of devices                                 1
  Device Name                                     GeForce GT 540M
  Device Vendor                                   NVIDIA Corporation
  Device Vendor ID                                0x10de
  Device Version                                  OpenCL 1.1 CUDA
  Driver Version                                  381.09
  Device OpenCL C Version                         OpenCL C 1.1
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Device Topology (NV)                            PCI-E, 01:00.0
  Max compute units                               2
  Max clock frequency                             1344MHz
  Compute Capability (NV)                         2.1
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x64
  Max work group size                             1024
  Preferred work group size multiple              32
  Warp size (NV)                                  32
  Preferred / native vector sizes                 
    char                                                 1 / 1       
    short                                                1 / 1       
    int                                                  1 / 1       
    long                                                 1 / 1       
    half                                                 0 / 0        (n/a)
    float                                                1 / 1       
    double                                               1 / 1        (cl_khr_fp64)
  Half-precision Floating-point support           (n/a)
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Address bits                                    64, Little-Endian
  Global memory size                              2081619968 (1.939GiB)
  Error Correction support                        No
  Max memory allocation                           520404992 (496.3MiB)
  Unified memory for Host and Device              No
  Integrated memory (NV)                          No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       4096 bits (512 bytes)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        32768
  Global Memory cache line                        128 bytes
  Image support                                   Yes
    Max number of samplers per kernel             16
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             2048x2048x2048 pixels
    Max number of read image args                 128
    Max number of write image args                8
  Local memory type                               Local
  Local memory size                               49152 (48KiB)
  Registers per block (NV)                        32768
  Max constant buffer size                        65536 (64KiB)
  Max number of constant args                     9
  Max size of kernel argument                     4352 (4.25KiB)
  Queue properties                               
    Out-of-order execution                        Yes
    Profiling                                     Yes
  Profiling timer resolution                      1000ns
  Execution capabilities                         
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Kernel execution timeout (NV)                 Yes
  Concurrent copy and kernel execution (NV)       Yes
    Number of async copy engines                  1
  Device Available                                Yes
  Compiler Available                              Yes
  Device Extensions                               cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  NVIDIA CUDA
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [NV]
  clCreateContext(NULL, ...) [default]            Success [NV]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No platform

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.8
  ICD loader Profile                              OpenCL 1.2
   NOTE:   your OpenCL library declares to support OpenCL 1.2,
      but it seems to support up to OpenCL 2.1 too.
Offline

Dmitry Potrivaev

  • Posts: 13
  • Joined: Wed Jul 27, 2016 8:43 am

Re: CL_DEVICE_NOT_FOUND error in Fusion 8 under the Linux

PostWed May 03, 2017 1:08 pm

BTW same option (OpenCL) shows at Windows 8 OS at the same notebook fine...

Seems like it's a Linux problem (Fusion or driver) :(
Attachments
fusion-prefs-on-windows-8.jpg
fusion-prefs-on-windows-8.jpg (41.78 KiB) Viewed 221 times
Offline

Dmitry Potrivaev

  • Posts: 13
  • Joined: Wed Jul 27, 2016 8:43 am

Re: CL_DEVICE_NOT_FOUND error in Fusion 8 under the Linux

PostTue May 16, 2017 1:10 pm

After long search I've found a solution at last!!! Problem was with missing of some needed packages for Nvidia drivers, which don't install automatically with drivers... This is how I understood this problem :)

Now Fusion 8 is perfectly runs at my laptop on Ubuntu 16.04 without any problem. Here you are the suggestion I've followed and which solved my issue with missing OpenCL device:

Make sure you are using the NVidia proprietary driver. Then installing nvidia-opencl-dev and nvidia-opencl-icd-xxx where xxx correspond to the driver version you are running should be fine.

You can install those packages by entering in Terminal:
Code: Select all
sudo apt-get install nvidia-opencl-dev
sudo apt-get install nvidia-opencl-icd-xxx

Don't forget to change xxx to your Nvidia drivers version!

Hope this solution helps somebody else with similar problem. Have a great day, guys!
Attachments
Fusion-8-on-Ubuntu-with-OpenCL-run.png
Fusion-8-on-Ubuntu-with-OpenCL-run.png (175.35 KiB) Viewed 108 times

Return to Fusion

Who is online

Users browsing this forum: No registered users and 1 guest