Repository navigation
Closed
Labels
Description
Describe the bug
nix run --arg config '{ allowUnfree = true; }' nixpkgs.geekbench -c geekbench5 --compute-list
don't list compute devices
Expected behavior
I have a Radeon RX 480 and use PR #82729 to have OpenCL support in Mesa. BOINC and clinfo detects the GPU as OpenCL device.
[davidak@gaming:~]$ nix run nixpkgs.clinfo -c clinfo
Number of platforms 1
Platform Name Clover
Platform Vendor Mesa
Platform Version OpenCL 1.1 Mesa 19.3.3
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix MESA
Platform Name Clover
Number of devices 1
Device Name AMD Radeon (TM) RX 480 Graphics (POLARIS10, DRM 3.35.0, 5.4.41, LLVM 9.0.1)
...
And even Vulkan seems to work:
[davidak@gaming:~]$ nix run nixpkgs.vulkan-tools -c vulkaninfo
==========
VULKANINFO
==========
Vulkan Instance Version: 1.2.131
Instance Extensions: count = 18
====================
VK_EXT_acquire_xlib_display : extension revision 1
VK_EXT_debug_report : extension revision 9
...
Same with Nvidia:
[davidak@gaming:~]$ nix run nixpkgs.clinfo -c clinfo
Number of platforms 1
Platform Name NVIDIA CUDA
Platform Vendor NVIDIA Corporation
Platform Version OpenCL 1.2 CUDA 10.2.159
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 cl_khr_int64_base_atomics cl_khr_int64_extended_atomics
Platform Extensions function suffix NV
Platform Name NVIDIA CUDA
Number of devices 2
Device Name GeForce GTX 1050 Ti
Device Vendor NVIDIA Corporation
Device Vendor ID 0x10de
Device Version OpenCL 1.2 CUDA
Driver Version 440.82
[davidak@gaming:~]$ nix run nixpkgs.vulkan-tools -c vulkaninfo
==========
VULKANINFO
==========
Vulkan Instance Version: 1.2.131
Instance Extensions: count = 17
====================
VK_EXT_acquire_xlib_display : extension revision 1
VK_EXT_debug_report : extension revision 9
Notify maintainers
@michalrus
Metadata
- system:
"x86_64-linux" - host os:
Linux 5.4.41, NixOS, 20.03.1879.91cdcf31357 (Markhor) - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.3.4 - channels(root):
"nixos-20.03.1879.91cdcf31357, nixos-hardware, nixos-unstable-20.09pre225931.32b8ed73809" - nixpkgs:
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: geekbench
# a list of nixos modules affected by the problem
module:Reacted by Michal Rus
Activity
davidak commentedon May 17, 2020
My next step would be to add
ocl-icdas dependency and to the PATH. It works in BOINC.davidak commentedon May 28, 2020
That would be too easy... further debugging.
So we need
libcuda.so,libOpenCL.so,libOpenCL.so.1,libvulkan.soandvulkan.so.1in the PATH.I figured it out!