Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
opencl drivers missing on >=x11-drivers/nvidia-drivers-355?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
skunk
l33t
l33t


Joined: 28 May 2003
Posts: 646
Location: granada, spain

PostPosted: Mon Jun 27, 2016 11:12 am    Post subject: opencl drivers missing on >=x11-drivers/nvidia-drivers-35 Reply with quote

hello,
i'm setting up some headless cuda crunchers with gtx 970 cards, however it works only with drivers older than 355, with any more recent driver version:

- portage wants to rebuild dev-util/nvidia-cuda-sdk and dev-util/nvidia-cuda-toolkit because missing opencl libraries but rebuilding them is useless

- no opencl option in eselect:
Code:

# eselect opencl list
Available OpenCL implementations:
  (none found)


- and obviously the crunching application is complaining about missing opencl too...

the x11-drivers/nvidia-drivers packages has only multilib and uvm use flags enabled...
please, what should i do to enable opencl with newest drivers?
thank you.
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 515
Location: Italia

PostPosted: Mon Jun 27, 2016 2:17 pm    Post subject: Reply with quote

I don't know if it is the correct answer;
and if you try to emerge this package?

Quote:
dev-util/nvidia-cuda-toolkit
Back to top
View user's profile Send private message
skunk
l33t
l33t


Joined: 28 May 2003
Posts: 646
Location: granada, spain

PostPosted: Mon Jun 27, 2016 3:18 pm    Post subject: Reply with quote

the problem is /usr/lib64/OpenCL/vendors/nvidia/libOpenCL.so.1.0.0 gets somehow stripped from the build process starting from nvidia-drivers-355.11-r2...
i don't see any opencl use flag for nvidia-drivers, how to enable it again?
thank you.
Code:

# equery u x11-drivers/nvidia-drivers
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for x11-drivers/nvidia-drivers-361.28:
 U I
 - - X           : Install the X.org driver, OpenGL libraries, XvMC libraries, and VDPAU libraries
 - - acpi        : Add support for Advanced Configuration and Power Interface
 + - driver      : Install the kernel driver module
 - - gtk3        : Install nvidia-settings with support for GTK+ 3
 + - kms         : Enable support for kernel mode setting (KMS)
 + + multilib    : On 64bit systems, if you want to be able to compile 32bit and 64bit binaries
 - - pax_kernel  : PaX patches from the PaX project
 - - static-libs : Build static versions of dynamic libraries as well
 - - tools       : Install additional tools such as nvidia-settings
 + - uvm         : Install the Unified Memory kernel module (nvidia-uvm) for sharing memory between CPU and GPU in CUDA programs
Back to top
View user's profile Send private message
skunk
l33t
l33t


Joined: 28 May 2003
Posts: 646
Location: granada, spain

PostPosted: Tue Jun 28, 2016 11:10 am    Post subject: Reply with quote

ok well, it turns out opencl stuff depends on the X use flag now :roll:
Code:

[ebuild   R    ] x11-proto/xproto-7.0.28::gentoo  USE="-doc" ABI_X86="32* (64) (-x32)" 0 KiB
[ebuild   R    ] x11-proto/xextproto-7.3.0::gentoo  USE="-doc" ABI_X86="32* (64) (-x32)" 0 KiB
[ebuild   R    ] x11-proto/kbproto-1.0.7::gentoo  ABI_X86="32* (64) (-x32)" 0 KiB
[ebuild   R    ] x11-proto/inputproto-2.3.1::gentoo  ABI_X86="32* (64) (-x32)" 0 KiB
[ebuild   R    ] dev-libs/libpthread-stubs-0.3-r1::gentoo  USE="-static-libs" ABI_X86="32* (64) (-x32)" 0 KiB
[ebuild  N     ] x11-proto/fontsproto-2.1.3::gentoo  USE="-doc" 151 KiB
[ebuild   R    ] x11-proto/xf86bigfontproto-1.2.0-r1::gentoo  ABI_X86="32* (64) (-x32)" 0 KiB
[ebuild  N     ] x11-proto/resourceproto-1.2.0::gentoo  101 KiB
[ebuild  N     ] x11-proto/xf86rushproto-1.1.2-r1::gentoo  37 KiB
[ebuild  N     ] x11-proto/recordproto-1.14.2-r1::gentoo  USE="-doc" ABI_X86="(64) -32 (-x32)" 121 KiB
[ebuild  N     ] x11-proto/xcmiscproto-1.2.2::gentoo  USE="-doc" 110 KiB
[ebuild  N     ] x11-libs/libpciaccess-0.13.4::gentoo  USE="zlib -static-libs" ABI_X86="(64) -32 (-x32)" 364 KiB
[ebuild  N     ] x11-proto/xineramaproto-1.2.1-r1::gentoo  ABI_X86="(64) -32 (-x32)" 94 KiB
[ebuild  N     ] x11-proto/scrnsaverproto-1.2.2-r1::gentoo  USE="-doc" ABI_X86="(64) -32 (-x32)" 117 KiB
[ebuild  N     ] x11-proto/compositeproto-0.4.2-r1::gentoo  ABI_X86="(64) -32 (-x32)" 99 KiB
[ebuild  N     ] x11-proto/xf86dgaproto-2.1-r2::gentoo  ABI_X86="(64) -32 (-x32)" 84 KiB
[ebuild  N     ] x11-proto/videoproto-2.3.2::gentoo  ABI_X86="(64) -32 (-x32)" 117 KiB
[ebuild  N     ] x11-misc/xbitmaps-1.1.1::gentoo  111 KiB
[ebuild  N     ] x11-proto/trapproto-3.4.3::gentoo  48 KiB
[ebuild  N     ] x11-proto/bigreqsproto-1.1.2::gentoo  USE="-doc" 111 KiB
[ebuild  N     ] x11-libs/pixman-0.32.8::gentoo  USE="(-altivec) (-iwmmxt) (-loongson2f) (-neon) -static-libs" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmxext sse2 -ssse3" 680 KiB
[ebuild   R    ] x11-proto/xcb-proto-1.11::gentoo  ABI_X86="32* (64) (-x32)" PYTHON_TARGETS="python2_7 python3_4 -python3_3 (-python3_5)" 0 KiB
[ebuild   R    ] x11-libs/libXau-1.0.8::gentoo  USE="-static-libs" ABI_X86="32* (64) (-x32)" 0 KiB
[ebuild   R    ] x11-libs/libXdmcp-1.1.2::gentoo  USE="-doc -static-libs" ABI_X86="32* (64) (-x32)" 0 KiB
[ebuild  N     ] x11-apps/rgb-1.0.6::gentoo  136 KiB
[ebuild  N     ] x11-libs/libfontenc-1.1.3::gentoo  USE="-static-libs" 295 KiB
[ebuild   R    ] x11-libs/libxcb-1.11.1:0/1.11.1::gentoo  USE="-doc (-selinux) -static-libs {-test} -xkb" ABI_X86="32* (64) (-x32)" 0 KiB
[ebuild  N     ] x11-libs/libXfont-1.5.1::gentoo  USE="bzip2 ipv6 -doc -static-libs -truetype" 492 KiB
[ebuild  N     ] x11-apps/iceauth-1.0.7::gentoo  133 KiB
[ebuild   R    ] x11-libs/libX11-1.6.3::gentoo  USE="ipv6 -doc -static-libs {-test}" ABI_X86="32* (64) (-x32)" 0 KiB
[ebuild   R    ] x11-libs/libXext-1.3.3::gentoo  USE="-doc -static-libs" ABI_X86="32* (64) (-x32)" 0 KiB
[ebuild  N     ] x11-libs/libxkbfile-1.0.9::gentoo  USE="-static-libs" 340 KiB
[ebuild  N     ] x11-apps/xkbcomp-1.3.0::gentoo  241 KiB
[ebuild  N     ] x11-libs/libvdpau-1.1.1::gentoo  USE="dri -doc {-test}" ABI_X86="(64) -32 (-x32)" 530 KiB
[ebuild  N     ] x11-apps/xauth-1.0.9-r2::gentoo  USE="ipv6" 152 KiB
[ebuild  N     ] x11-misc/xkeyboard-config-2.16::gentoo  946 KiB
[ebuild  N     ] x11-apps/xrdb-1.1.0::gentoo  135 KiB
[ebuild  N     ] x11-apps/xinit-1.3.4-r1::gentoo  USE="minimal -systemd" 162 KiB
[ebuild  N     ] x11-base/xorg-server-1.17.4:0/1.17.4::gentoo  USE="ipv6 minimal nptl suid -dmx -doc -glamor -kdrive (-libressl) (-selinux) -static-libs -systemd -tslib -udev -unwind -wayland -xephyr -xnest -xorg -xvfb" 5,656 KiB
[ebuild     U  ] x11-drivers/nvidia-drivers-361.28:0/361::gentoo [352.79:0/352::gentoo] USE="X* driver%* kms%* multilib uvm -acpi -gtk3 -pax_kernel -static-libs% -tools (-gtk2%)" 0 KiB

Total: 40 packages (1 upgrade, 27 new, 12 reinstalls), Size of downloads: 11,552 KiB

why should i install all this stuff i don't need?
there is even this (old) bug but no explanation about the ebuild behaviour change, however i've just contributed with a dumb fix...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum