summaryrefslogtreecommitdiff
path: root/SECURITY.md
diff options
context:
space:
mode:
authorJohn Jolly <jjolly@cs.utah.edu>2023-04-28 03:37:22 -0600
committerGitHub <noreply@github.com>2023-04-28 11:37:22 +0200
commit076660804d9129529f855f2fd5fdcef8acfe2510 (patch)
tree05e650f8bde6bd19b65aacfc0c0c860c8cf0c2d9 /SECURITY.md
parente57db5c5282dddfc5eec4d5d373fa23f262534cc (diff)
downloadspack-076660804d9129529f855f2fd5fdcef8acfe2510.tar.gz
spack-076660804d9129529f855f2fd5fdcef8acfe2510.tar.bz2
spack-076660804d9129529f855f2fd5fdcef8acfe2510.tar.xz
spack-076660804d9129529f855f2fd5fdcef8acfe2510.zip
bricks: Fix package to properly find spack opencl-clhpp (#37239)
The bricks package uses header from the opencl-clhpp package when built with the cuda variant activated. In order to find the header files, the bricks CMakeLists.txt uses the `find_package(OpenCL 2.0)` statement. The CMake FindOpenCL module searches several paths to find the header files. Eventually it will search for header files in the local /usr/include directories. If OpenCL headers are found, but CUDA is not installed locally, then the build will fail. One of the CMake variables searched for a path to the OpenCL headers is OCL_ROOT. This fix utilizes the OCL_ROOT variable to identify the correct path to the install opencl-clhpp package within Spack. Also, if the cuda variant is not used, then the OpenCL build is disabled to prevent a build failure due to improperly-identified locally-installed OpenCL header files. The default behavior of the build process has not changed. An external variable definitions must be made to activate these features. Specifically, to disable the OpenCL build, this flag must be provided to CMake: -DBRICK_USE_OPENCL=OFF The Spack build process explicitly uses this option unless the cuda variant is specified. If the cuda variant is specified, then the BRICK_USE_OPENCL variable is set to ON and the OCL_ROOT variable is set to the path of the opencl-clhpp include directory.
Diffstat (limited to 'SECURITY.md')
0 files changed, 0 insertions, 0 deletions