Statistiques
| Révision :

root / Pi / C / Kokkos / README @ 286

Historique | Voir | Annoter | Télécharger (731 octet)

1
# To compile it under Debian Stretch
2
# Current version is broken, take specific one...
3

    
4
wget https://github.com/kokkos/kokkos/archive/2.7.00.tar.gz
5
tar xzf 2.7.00.tar.gz
6
sed -i 's/^host_compiler/host_compiler=\"clang++-3.8\"\n#host_compiler/g' kokkos-2.7.00/bin/nvcc_wrapper
7

    
8

    
9
# Load cuda environment for lib64 and include folders
10
. /usr/share/modules/init/bash
11
module load cuda/9.0
12

    
13
# Define the default compilers (must be installed)
14
export CC=/usr/bin/clang-3.8
15
export CXX=/usr/bin/clang++-3.8
16

    
17
# 
18
export KOKKOS_ENABLE_CUDA=1
19
export KOKKOS_ENABLE_OPENMP=1
20
export KOKKOS_ENABLE_HWLOC=1
21

    
22
# To compile CUDA versions
23
export KOKKOS_DEVICES=Cuda
24
export KOKKOS_ARCH=Maxwell52
25

    
26
# To compile OpenMP versions
27
export KOKKOS_DEVICES=OpenMP
28