Skip to content

Thu. Oct. 27, 2016

Hugh Young edited this page Nov 12, 2016 · 4 revisions

>uname -a

Linux fornax 2.6.32-573.12.1.el6.x86_64 #1 SMP Tue Dec 15 21:19:08 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

>lspci | grep NVIDIA

05:00.0 3D controller: NVIDIA Corporation GK210GL [Tesla K80] (rev a1)

06:00.0 3D controller: NVIDIA Corporation GK210GL [Tesla K80] (rev a1)

84:00.0 3D controller: NVIDIA Corporation GK210GL [Tesla K80] (rev a1)

85:00.0 3D controller: NVIDIA Corporation GK210GL [Tesla K80] (rev a1)

// suppose you put dynamic-switch-llvm.sh directory in $PATH

>source dynamic-switch-llvm.sh llvm llvm-ykt

>which clang++

~/install-llvm-ykt/bin/clang++

>cd $WORKING_PATH/llvm-ykt/projects/openmp/libomptarget/omptests/t-class

>clang++ -v -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda --cuda-path=/opt/nvidia/cuda -O3 test.cpp

Clone this wiki locally