[darktable-dev] darktable 3.0 rc1 openCL

2019-11-19 Thread Jozef Dassen

After a lot of struggle I managed to install amdgpu drivers on my Ubuntu 18.04.

It did not work with kernel 5.0 but going back to kernel 4.15 worked fine. Flawless installation of amdgpu 18.40.

 

Then I ran darktable-cltest  (darktable 3.0 rc1) and got the following result:

 



0.037740 [opencl_init] opencl related configuration options:
0.037752 [opencl_init]
0.037755 [opencl_init] opencl: 1
0.037757 [opencl_init] opencl_library: ''
0.037759 [opencl_init] opencl_memory_requirement: 500
0.037761 [opencl_init] opencl_memory_headroom: 0
0.037763 [opencl_init] opencl_device_priority: '*/!0,*/*/*'
0.037784 [opencl_init] opencl_mandatory_timeout: 200
0.037786 [opencl_init] opencl_size_roundup: 16
0.037788 [opencl_init] opencl_async_pixelpipe: 0
0.037790 [opencl_init] opencl_synch_cache: active module
0.037794 [opencl_init] opencl_number_event_handles: 25
0.037797 [opencl_init] opencl_micro_nap: 1000
0.037800 [opencl_init] opencl_use_pinned_memory: 0
0.037802 [opencl_init] opencl_use_cpu_devices: 0
0.037804 [opencl_init] opencl_avoid_atomics: 1
0.037806 [opencl_init]
0.037962 [opencl_init] found opencl runtime library 'libOpenCL'
0.037980 [opencl_init] opencl library 'libOpenCL' found on your system and loaded
0.170870 [opencl_init] found 1 platform
0.170885 [opencl_init] found 1 device
0.170923 [opencl_init] device 0 `Capeverde' supports image sizes of 16384 x 16384
0.170927 [opencl_init] device 0 `Capeverde' allows GPU memory allocations of up to 1053MB
[opencl_init] device 0: Capeverde
 GLOBAL_MEM_SIZE:  1472MB
 MAX_WORK_GROUP_SIZE:  256
 MAX_WORK_ITEM_DIMENSIONS: 3
 MAX_WORK_ITEM_SIZES:  [ 1024 1024 1024 ]
 DRIVER_VERSION:   2686.5
 DEVICE_VERSION:   OpenCL 1.2 AMD-APP (2686.5)
0.171329 [opencl_init] could not create command queue for device 0: -6
0.171373 [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
0.171376 [opencl_init] initial status of opencl enabled flag is OFF.

 

 

my display is:


01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Venus XTX [Radeon HD 8890M / R9 M275X/M375X] (rev 83) (prog-if 00 [VGA controller])
    Subsystem: Dell Venus XTX [Radeon HD 8890M / R9 M275X/M375X]
    Flags: bus master, fast devsel, latency 0, IRQ 128
    Memory at b000 (64-bit, prefetchable) [size=256M]
    Memory at de30 (64-bit, non-prefetchable) [size=256K]
    I/O ports at e000 [size=256]
    Expansion ROM at 000c [disabled] [size=128K]
    Capabilities: [48] Vendor Specific Information: Len=08 
    Capabilities: [50] Power Management version 3
    Capabilities: [58] Express Legacy Endpoint, MSI 00
    Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 
    Capabilities: [150] Advanced Error Reporting
    Capabilities: [200] #15
    Capabilities: [270] #19
    Kernel driver in use: amdgpu
    Kernel modules: radeon, amdgpu

 

I have fresh Ubuntu 18.04-1 installation on a sytem with 64Gbyte RAM. Only Firefox is running. So no resource problems.

I have deferred all other installations until I can get darktable with openCL running. This is a sine-qua-non for me.



 

So no luck... Again

 

Any ideas what could be the problem ??

 

darktablerc parameters:


opencl=true
opencl_async_pixelpipe=false
opencl_avoid_atomics=true
opencl_checksum=
opencl_device_priority=*/!0,*/*/*
opencl_disable_drivers_blacklist=false
opencl_library=
opencl_mandatory_timeout=200
opencl_memory_headroom=0
opencl_memory_requirement=500
opencl_micro_nap=1000
opencl_number_event_handles=25
opencl_scheduling_profile=default
opencl_size_roundup=16
opencl_synch_cache=active module
opencl_use_cpu_devices=false
opencl_use_pinned_memory=false

 


 

Regards, Jozef Dassen



___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org





Re: [darktable-dev] darktable 3.0 rc1 openCL

2019-11-19 Thread Andreas Schneider
On Tuesday, 19 November 2019 12:27:50 CET Jozef Dassen wrote:
> After a lot of struggle I managed to install amdgpu drivers on my Ubuntu
> 18.04. It did not work with kernel 5.0 but going back to kernel 4.15 worked
> fine. Flawless installation of amdgpu 18.40. 
> Then I ran darktable-cltest  (darktable 3.0 rc1) and got the following
> result: 
> 0.037740 [opencl_init] opencl related configuration options:
> 0.037752 [opencl_init]
> 0.037755 [opencl_init] opencl: 1
> 0.037757 [opencl_init] opencl_library: ''
> 0.037759 [opencl_init] opencl_memory_requirement: 500
> 0.037761 [opencl_init] opencl_memory_headroom: 0
> 0.037763 [opencl_init] opencl_device_priority: '*/!0,*/*/*'
> 0.037784 [opencl_init] opencl_mandatory_timeout: 200
> 0.037786 [opencl_init] opencl_size_roundup: 16
> 0.037788 [opencl_init] opencl_async_pixelpipe: 0
> 0.037790 [opencl_init] opencl_synch_cache: active module
> 0.037794 [opencl_init] opencl_number_event_handles: 25
> 0.037797 [opencl_init] opencl_micro_nap: 1000
> 0.037800 [opencl_init] opencl_use_pinned_memory: 0
> 0.037802 [opencl_init] opencl_use_cpu_devices: 0
> 0.037804 [opencl_init] opencl_avoid_atomics: 1
> 0.037806 [opencl_init]
> 0.037962 [opencl_init] found opencl runtime library 'libOpenCL'
> 0.037980 [opencl_init] opencl library 'libOpenCL' found on your system and
> loaded 0.170870 [opencl_init] found 1 platform
> 0.170885 [opencl_init] found 1 device
> 0.170923 [opencl_init] device 0 `Capeverde' supports image sizes of 16384 x
> 16384 0.170927 [opencl_init] device 0 `Capeverde' allows GPU memory
> allocations of up to 1053MB [opencl_init] device 0: Capeverde
>  GLOBAL_MEM_SIZE:  1472MB
>  MAX_WORK_GROUP_SIZE:  256
>  MAX_WORK_ITEM_DIMENSIONS: 3
>  MAX_WORK_ITEM_SIZES:  [ 1024 1024 1024 ]
>  DRIVER_VERSION:   2686.5
>  DEVICE_VERSION:   OpenCL 1.2 AMD-APP (2686.5)
> 0.171329 [opencl_init] could not create command queue for device 0: -6
> 0.171373 [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
> 0.171376 [opencl_init] initial status of opencl enabled flag is OFF.
>  
>  
> my display is:
> 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
> Venus XTX [Radeon HD 8890M / R9 M275X/M375X] (rev 83) (prog-if 00 [VGA
> controller]) Subsystem: Dell Venus XTX [Radeon HD 8890M / R9 M275X/M375X]
> Flags: bus master, fast devsel, latency 0, IRQ 128
> Memory at b000 (64-bit, prefetchable) [size=256M]
> Memory at de30 (64-bit, non-prefetchable) [size=256K]
> I/O ports at e000 [size=256]
> Expansion ROM at 000c [disabled] [size=128K]
> Capabilities: [48] Vendor Specific Information: Len=08 
> Capabilities: [50] Power Management version 3
> Capabilities: [58] Express Legacy Endpoint, MSI 00
> Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
> Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010
>  Capabilities: [150] Advanced Error Reporting
> Capabilities: [200] #15
> Capabilities: [270] #19
> Kernel driver in use: amdgpu
> Kernel modules: radeon, amdgpu
>  
> I have fresh Ubuntu 18.04-1 installation on a sytem with 64Gbyte RAM. Only
> Firefox is running. So no resource problems. I have deferred all other
> installations until I can get darktable with openCL running. This is a
> sine-qua-non for me. 
> So no luck... Again
>  
> Any ideas what could be the problem ??
>  
> darktablerc parameters:
> opencl=true
> opencl_async_pixelpipe=false
> opencl_avoid_atomics=true
> opencl_checksum=
> opencl_device_priority=*/!0,*/*/*
> opencl_disable_drivers_blacklist=false
> opencl_library=
> opencl_mandatory_timeout=200
> opencl_memory_headroom=0
> opencl_memory_requirement=500
> opencl_micro_nap=1000
> opencl_number_event_handles=25
> opencl_scheduling_profile=default
> opencl_size_roundup=16
> opencl_synch_cache=active module
> opencl_use_cpu_devices=false
> opencl_use_pinned_memory=false

I would suggest to just use the open source driver provided by the kernel and 
install ROCm for OpenCL.

http://repo.radeon.com/rocm/apt/


Works just fine on Fedora and openSUSE. I can't help you with the proprietary 
driver.


Andreas


-- 
Andreas Schneider a...@cryptomilk.org
GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D


___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



Re: [darktable-dev] darktable 3.0 rc1 openCL

2019-11-19 Thread Jozef Dassen
 


No luck with rocm either, but the message changes, see below

 

I am not sure if the hsa module is correct... Why does it refer to /data/jenkins_workspace/ ???

This is not on my computer.

 

Does anyone have darktable with openCL running on a Dell Precision 7700 series ??? If so which graphics card?

 

Thanks Jozef Dassen

 


rocminfo:
ROCk module is loaded
dassen is member of video group
hsa api call failure at: /data/jenkins_workspace/compute-rocm-rel-2.9/rocminfo/rocminfo.cc:1102
Call returned HSA_STATUS_ERROR_OUT_OF_RESOURCES: The runtime failed to allocate the necessary resources. This error may also occur when the core runtime
library needs to spawn threads or create internal OS-specific events.

 


clinfo:
Number of platforms:                 1
  Platform Profile:                 FULL_PROFILE
  Platform Version:                 OpenCL 2.1 AMD-APP (2982.0)
  Platform Name:                 AMD Accelerated Parallel Processing
  Platform Vendor:                 Advanced Micro Devices, Inc.
  Platform Extensions:                 cl_khr_icd cl_amd_event_callback cl_amd_offline_devices


  Platform Name:                 AMD Accelerated Parallel Processing
ERROR: clGetDeviceIDs(-1)

 

darktable-cltest:



0.038262 [opencl_init] opencl related configuration options:
0.038279 [opencl_init]
0.038281 [opencl_init] opencl: 1
0.038283 [opencl_init] opencl_library: ''
0.038285 [opencl_init] opencl_memory_requirement: 768
0.038287 [opencl_init] opencl_memory_headroom: 300
0.038289 [opencl_init] opencl_device_priority: '*/!0,*/*/*'
0.038291 [opencl_init] opencl_mandatory_timeout: 200
0.038292 [opencl_init] opencl_size_roundup: 16
0.038294 [opencl_init] opencl_async_pixelpipe: 0
0.038295 [opencl_init] opencl_synch_cache: active module
0.038297 [opencl_init] opencl_number_event_handles: 25
0.038299 [opencl_init] opencl_micro_nap: 1000
0.038300 [opencl_init] opencl_use_pinned_memory: 0
0.038302 [opencl_init] opencl_use_cpu_devices: 0
0.038303 [opencl_init] opencl_avoid_atomics: 0
0.038305 [opencl_init]
0.038443 [opencl_init] found opencl runtime library 'libOpenCL'
0.038460 [opencl_init] opencl library 'libOpenCL' found on your system and loaded
0.052124 [opencl_init] found 1 platform
0.052130 [opencl_init] could not get device id size: -1
0.052132 [opencl_init] found 0 device
0.052133 [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
0.052135 [opencl_init] initial status of opencl enabled flag is OFF.

 

 

 



 

Sent: Tuesday, November 19, 2019 at 7:26 PM
From: "Andreas Schneider" 
To: darktable-dev@lists.darktable.org
Cc: "Jozef Dassen" 
Subject: Re: [darktable-dev] darktable 3.0 rc1 openCL

On Tuesday, 19 November 2019 12:27:50 CET Jozef Dassen wrote:
> After a lot of struggle I managed to install amdgpu drivers on my Ubuntu
> 18.04. It did not work with kernel 5.0 but going back to kernel 4.15 worked
> fine. Flawless installation of amdgpu 18.40.
> Then I ran darktable-cltest (darktable 3.0 rc1) and got the following
> result:
> 0.037740 [opencl_init] opencl related configuration options:
> 0.037752 [opencl_init]
> 0.037755 [opencl_init] opencl: 1
> 0.037757 [opencl_init] opencl_library: ''
> 0.037759 [opencl_init] opencl_memory_requirement: 500
> 0.037761 [opencl_init] opencl_memory_headroom: 0
> 0.037763 [opencl_init] opencl_device_priority: '*/!0,*/*/*'
> 0.037784 [opencl_init] opencl_mandatory_timeout: 200
> 0.037786 [opencl_init] opencl_size_roundup: 16
> 0.037788 [opencl_init] opencl_async_pixelpipe: 0
> 0.037790 [opencl_init] opencl_synch_cache: active module
> 0.037794 [opencl_init] opencl_number_event_handles: 25
> 0.037797 [opencl_init] opencl_micro_nap: 1000
> 0.037800 [opencl_init] opencl_use_pinned_memory: 0
> 0.037802 [opencl_init] opencl_use_cpu_devices: 0
> 0.037804 [opencl_init] opencl_avoid_atomics: 1
> 0.037806 [opencl_init]
> 0.037962 [opencl_init] found opencl runtime library 'libOpenCL'
> 0.037980 [opencl_init] opencl library 'libOpenCL' found on your system and
> loaded 0.170870 [opencl_init] found 1 platform
> 0.170885 [opencl_init] found 1 device
> 0.170923 [opencl_init] device 0 `Capeverde' supports image sizes of 16384 x
> 16384 0.170927 [opencl_init] device 0 `Capeverde' allows GPU memory
> allocations of up to 1053MB [opencl_init] device 0: Capeverde
> GLOBAL_MEM_SIZE: 1472MB
> MAX_WORK_GROUP_SIZE: 256
> MAX_WORK_ITEM_DIMENSIONS: 3
> MAX_WORK_ITEM_SIZES: [ 1024 1024 1024 ]
> DRIVER_VERSION: 2686.5
> DEVICE_VERSION: OpenCL 1.2 AMD-APP (2686.5)
> 0.171329 [opencl_init] could not create command queue for device 0: -6
> 0.171373 [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
> 0.171376 [opencl_init] initial status of opencl enabled flag is OFF.
>
>
> my display is:
> 01:00.0 VGA compatible controller: Adva

Re: [darktable-dev] darktable 3.0 rc1 openCL

2019-11-20 Thread Andreas Schneider
On Wednesday, 20 November 2019 02:48:00 CET Jozef Dassen wrote:
> No luck with rocm either, but the message changes, see below
>  
> I am not sure if the hsa module is correct... Why does it refer to
> /data/jenkins_workspace/ ??? This is not on my computer.
>  
> Does anyone have darktable with openCL running on a Dell Precision 7700
> series ??? If so which graphics card? 
> Thanks Jozef Dassen
>  
> rocminfo:
> ROCk module is loaded
> dassen is member of video group
> hsa api call failure at:
> /data/jenkins_workspace/compute-rocm-rel-2.9/rocminfo/rocminfo.cc:1102 Call
> returned HSA_STATUS_ERROR_OUT_OF_RESOURCES: The runtime failed to allocate
> the necessary resources. This error may also occur when the core runtime
> library needs to spawn threads or create internal OS-specific events. 
> clinfo:
> Number of platforms: 1
>   Platform Profile: FULL_PROFILE
>   Platform Version: OpenCL 2.1 AMD-APP (2982.0)
>   Platform Name: AMD Accelerated Parallel Processing
>   Platform Vendor: Advanced Micro Devices, Inc.
>   Platform Extensions: cl_khr_icd cl_amd_event_callback
> cl_amd_offline_devices
> 
>   Platform Name: AMD Accelerated Parallel Processing
> ERROR: clGetDeviceIDs(-1)

Something is wrong with your opencl setup, clinfo returns an error.

Check /etc/OpenCL

and check the drivers loaded in the kernel.


Andreas

-- 
Andreas Schneider a...@cryptomilk.org
GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D


___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org



Re: [darktable-dev] darktable 3.0 rc1 openCL

2019-11-20 Thread Sturm Flut

Hi,

AFAICT your card hasn't been on the list of supported chips since the 
AMDGPU-PRO 14.04 driver. This was discussed on the darktable mailing 
list two years ago 
(https://www.mail-archive.com/darktable-user@lists.darktable.org/msg02791.html).


If you want to run Ubuntu 18.04.3 with the Hardware Enablement kernel 
(5.0.x), you need the AMDGPU-PRO 19.30 driver, BTW.


cheers,
Simon






On 19.11.19 04:27, Jozef Dassen wrote:
After a lot of struggle I managed to install amdgpu drivers on my Ubuntu 
18.04.
It did not work with kernel 5.0 but going back to kernel 4.15 worked 
fine. Flawless installation of amdgpu 18.40.
Then I ran darktable-cltest  (darktable 3.0 rc1) and got the following 
result:

0.037740 [opencl_init] opencl related configuration options:
0.037752 [opencl_init]
0.037755 [opencl_init] opencl: 1
0.037757 [opencl_init] opencl_library: ''
0.037759 [opencl_init] opencl_memory_requirement: 500
0.037761 [opencl_init] opencl_memory_headroom: 0
0.037763 [opencl_init] opencl_device_priority: '*/!0,*/*/*'
0.037784 [opencl_init] opencl_mandatory_timeout: 200
0.037786 [opencl_init] opencl_size_roundup: 16
0.037788 [opencl_init] opencl_async_pixelpipe: 0
0.037790 [opencl_init] opencl_synch_cache: active module
0.037794 [opencl_init] opencl_number_event_handles: 25
0.037797 [opencl_init] opencl_micro_nap: 1000
0.037800 [opencl_init] opencl_use_pinned_memory: 0
0.037802 [opencl_init] opencl_use_cpu_devices: 0
0.037804 [opencl_init] opencl_avoid_atomics: 1
0.037806 [opencl_init]
0.037962 [opencl_init] found opencl runtime library 'libOpenCL'
0.037980 [opencl_init] opencl library 'libOpenCL' found on your system 
and loaded

0.170870 [opencl_init] found 1 platform
0.170885 [opencl_init] found 1 device
0.170923 [opencl_init] device 0 `Capeverde' supports image sizes of 
16384 x 16384
0.170927 [opencl_init] device 0 `Capeverde' allows GPU memory 
allocations of up to 1053MB

[opencl_init] device 0: Capeverde
  GLOBAL_MEM_SIZE:  1472MB
  MAX_WORK_GROUP_SIZE:  256
  MAX_WORK_ITEM_DIMENSIONS: 3
  MAX_WORK_ITEM_SIZES:  [ 1024 1024 1024 ]
  DRIVER_VERSION:   2686.5
  DEVICE_VERSION:   OpenCL 1.2 AMD-APP (2686.5)
0.171329 [opencl_init] could not create command queue for device 0: -6
0.171373 [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
0.171376 [opencl_init] initial status of opencl enabled flag is OFF.
my display is:
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. 
[AMD/ATI] Venus XTX [Radeon HD 8890M / R9 M275X/M375X] (rev 83) (prog-if 
00 [VGA controller])

     Subsystem: Dell Venus XTX [Radeon HD 8890M / R9 M275X/M375X]
     Flags: bus master, fast devsel, latency 0, IRQ 128
     Memory at b000 (64-bit, prefetchable) [size=256M]
     Memory at de30 (64-bit, non-prefetchable) [size=256K]
     I/O ports at e000 [size=256]
     Expansion ROM at 000c [disabled] [size=128K]
     Capabilities: [48] Vendor Specific Information: Len=08 
     Capabilities: [50] Power Management version 3
     Capabilities: [58] Express Legacy Endpoint, MSI 00
     Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
     Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 
Len=010 

     Capabilities: [150] Advanced Error Reporting
     Capabilities: [200] #15
     Capabilities: [270] #19
     Kernel driver in use: amdgpu
     Kernel modules: radeon, amdgpu
I have fresh Ubuntu 18.04-1 installation on a sytem with 64Gbyte RAM. 
Only Firefox is running. So no resource problems.
I have deferred all other installations until I can get darktable with 
openCL running. This is a sine-qua-non for me.

So no luck... Again
Any ideas what could be the problem ??
darktablerc parameters:
opencl=true
opencl_async_pixelpipe=false
opencl_avoid_atomics=true
opencl_checksum=
opencl_device_priority=*/!0,*/*/*
opencl_disable_drivers_blacklist=false
opencl_library=
opencl_mandatory_timeout=200
opencl_memory_headroom=0
opencl_memory_requirement=500
opencl_micro_nap=1000
opencl_number_event_handles=25
opencl_scheduling_profile=default
opencl_size_roundup=16
opencl_synch_cache=active module
opencl_use_cpu_devices=false
opencl_use_pinned_memory=false
Regards, Jozef Dassen

___ 
darktable developer mailing list to unsubscribe send a mail to 
darktable-dev+unsubscr...@lists.darktable.org

___
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org