Project

General

Profile

Bug #11724

Having a space in install folder name prevents OpenCL to work

Added by Peter Budai almost 2 years ago. Updated almost 2 years ago.

Status:
Fixed
Priority:
Low
Assignee:
-
Category:
OpenCL
Target version:
Start date:
09/03/2017
Due date:
% Done:

100%

Affected Version:
git master branch
System:
Windows
bitness:
64-bit
hardware architecture:
amd64/x86

Description

If you install darktable into a folder which contains space(s) in the folder name makes OpenCL unable to build the kernel programs.

Repro:
1. Install darktable into a folder with space in the name like "C:\Program Files\darktable"
2. Run C:\Program Files\darktable\darktable-cltest.exe"
3. result is:
@[opencl_init] compiling program `demosaic_ppg.cl' ..
[opencl_fopen_stat] could not open file `C:\Users\peterbud\AppData\Local\Microsoft\Windows\INetCache\darktable/cached_kernels_for_IntelRHDGraphics520/demosaic_ppg.cl.bin.4b0f595c6b3036e3358cef48dd5498dc'!
[opencl_load_program] could not load cached binary program, trying to compile source
[opencl_load_program] successfully loaded program from `c:\Program Files\darktable\share\darktable/kernels/demosaic_ppg.cl'
[opencl_build_program] could not build program: -43
[opencl_build_program] BUILD STATUS: -2
BUILD LOG:

[opencl_init] failed to compile program `demosaic_ppg.cl'!
[opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.@

4. Install the same way to a folder without spaces, like "C:\darktable"
5. Run "c:\darktable\bin\darktable-cltest.exe"
6. OpenCL successfully initializes

Associated revisions

Revision 43b934e2
Added by Peter Budai almost 2 years ago

Escape whitespace in opencl include path
Fixes #11724

History

#2 Updated by Peter Budai almost 2 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Fixed

#3 Updated by Roman Lebedev almost 2 years ago

  • Target version set to 2.4.0

Also available in: Atom PDF