Skip to content

Commit

Permalink
fix adaptivecpp installs scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
alifahrri committed Mar 19, 2024
1 parent fb0f710 commit 8435b52
Showing 1 changed file with 39 additions and 5 deletions.
44 changes: 39 additions & 5 deletions scripts/install_opensycl.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,44 @@
#!/usr/bin/bash

LLVM_VERSION=14
ACCELERATED_CPU=ON
OPENCL_BACKEND=ON
CUDA_BACKEND=ON
BUILD_TYPE=Release
if [[ -z "${LLVM_VERSION}" ]]; then
LLVM_VERSION="14"
else
LLVM_VERSION="${LLVM_VERSION}"
echo "set LLVM_VERSION from env"
fi

if [[ -z "${ACCELERATED_CPU}" ]]; then
ACCELERATED_CPU="ON"
else
ACCELERATED_CPU="${ACCELERATED_CPU}"
echo "set ACCELERATED_CPU from env"
fi

if [[ -z "${OPENCL_BACKEND}" ]]; then
OPENCL_BACKEND="ON"
else
OPENCL_BACKEND="${OPENCL_BACKEND}"
echo "set OPENCL_BACKEND from env"
fi

if [[ -z "${CUDA_BACKEND}" ]]; then
CUDA_BACKEND="ON"
else
CUDA_BACKEND="${CUDA_BACKEND}"
echo "set CUDA_BACKEND from env"
fi

if [[ -z "${BUILD_TYPE}" ]]; then
BUILD_TYPE="Release"
else
BUILD_TYPE="${BUILD_TYPE}"
echo "set BUILD_TYPE from env"
fi

echo "using LLVM_VERSION=${LLVM_VERSION}"
echo "using ACCELERATED_CPU=${ACCELERATED_CPU}"
echo "using OPENCL_BACKEND=${OPENCL_BACKEND}"
echo "using CUDA_BACKEND=${CUDA_BACKEND}"

DIR=OpenSYCL
GIT_REPOSITORY=https://github.com/OpenSYCL/OpenSYCL
Expand Down

0 comments on commit 8435b52

Please sign in to comment.