Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 402345

Summary: The "opencl" USE flag should not be NVIDIA-exclusive in profiles/hardened/linux/use.mask
Product: Gentoo Linux Reporter: jzhper
Component: EclassesAssignee: The Gentoo Linux Hardened Team <hardened>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description jzhper 2012-02-06 05:07:41 UTC
/usr/portage/profiles/base/use.mask and /usr/portage/profiles/hardened/linux/use.mask masked the "opencl" USE flag on the basis that NVIDIA is the sole provider for OpenCL libraries. However that is not the case anymore. Intel, through dev-util/intel-ocl-sdk and AMD, through >=ati-drivers-12.1-r1, and through =ati-drivers-12.1 with the "opencl" USE flag, already includes with it the necessary libraries. Hence, "USE=opencl emerge -1 imagemagick -p" should have the "opencl" USE flag enabled as opposed to "(-opengl)". Therefore, I request that the "-opencl" mask be removed.

Reproducible: Always

Steps to Reproduce:
Run "USE=opencl emerge -1 imagemagick -p" on a recent Gentoo system with profile hardened/linux/amd64/no-multilib/selinux and with recent AMD Radeon GPU(s) and appropriate x11-drivers/ati-drivers.

Actual Results:  
Portage returns to us "(-opencl)" 

Expected Results:  
Portage returns to us "opencl" in USE.

Vide http://forums.gentoo.org/viewtopic-p-6936730.html for working OpenCL with AMD hardware.
Comment 1 Anthony Basile gentoo-dev 2012-02-12 15:46:23 UTC
From profiles/ChangeLog

  07 Feb 2012; Anthony G. Basile <blueness@gentoo.org> hardened/linux/use.mask:
  Unmask opencl USE flag on hardened