-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup_environment
More file actions
37 lines (31 loc) · 1.44 KB
/
Copy pathsetup_environment
File metadata and controls
37 lines (31 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# IPMACC environment
#set the following variable to the location of IPMACC, where `ipmacc' script exists
export IPMACCROOT=/home/ahmlas/work/dev/ipmacc
export IPMACCBUILDNCORE=4 # number of cores to use for building
# CUDA environment
# comment the following line to disable CUDA integration in libopenacc, else set CUDAHOME properly
export CUDASUPPORT=1
export CUDAHOME=/usr/local/cuda/
# OpenCL environment
# Set OPENCLSUPPORT to 1 to enable OpenCL integration in libopenacc. Also
# set OPENCLLIB and OPENCLINC parameters properly as explained below.
# Notice: OpenCL 1.2 is the minimum requirement. Otherwise, set OPENCLSUPPORT to 0.
# OPENCLLIB is the path to the directory containing libOpenCL.so
# examples:
# on NVIDIA platform: /usr/local/cuda/targets/x86_64-linux/lib
# on Intel platform: /opt/intel/opencl/lib64/
# on AMD platform: /opt/rocm-3.3.0/opencl/lib/x86_64/
# OPENCLINC is the path to the directory containing CL/cl.h
# examples:
# on NVIDIA platform: /usr/local/cuda/include/
# on Intel platform: /opt/intel/opencl/include/
# on AMD platform: /opt/rocm-3.3.0/opencl/include/
export OPENCLSUPPORT=1
export OPENCLLIB=/usr/local/cuda/targets/x86_64-linux/lib/
export OPENCLINC=/usr/local/cuda/include/
# ISPC
export ISPCSUPPORT=0
export ISPCHOME=/home/lashgar/src/ispc/ispc-v1.8.2knl-linux/
# no modification is needed for the following lines
export LD_LIBRARY_PATH=$IPMACCROOT/build/runtime-lib/:$LD_LIBRARY_PATH
export PATH=$IPMACCROOT/:$PATH