Commit 2acd0c78 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Try to install cuda pilot with an other way

parent 56a06b7c
#!/bin/bash
# Let's activate a new cuda repository
# wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
# mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
# wget https://developer.download.nvidia.com/compute/cuda/11.2.0/local_installers/cuda-repo-ubuntu2004-11-2-local_11.2.0-460.27.04-1_amd64.deb
# dpkg -i cuda-repo-ubuntu2004-11-2-local_11.2.0-460.27.04-1_amd64.deb
apt-key add /var/cuda-repo-ubuntu2004-11-2-local/7fa2af80.pub
apt-get update
apt-get -y install cuda
......@@ -13,15 +13,15 @@ phoenix_compileAndRunExample(perf_hadamard_gpupar_O4 "-O4" "${CONFIG_GPU_HADAMAR
phoenix_compileAndRunExample(perf_hadamard_gpupar_vectorize_O3 "-O3 -mavx2" "${CONFIG_GPU_HADAMARD}" ${progSrc})
phoenix_compileAndRunExample(perf_hadamard_gpupar_vectorize_O4 "-O4 -mavx2" "${CONFIG_GPU_HADAMARD}" ${progSrc})
set(GPU_EXTRA_FLAGS " -stdpar -gpu=cc35")
set(GPU_EXTRA_FLAGS " -stdpar -gpu=cc60")
# phoenix_compileAndRunExample(perf_hadamard_gpu_stdpar_par_vectorize_O3 "-O3 ${GPU_EXTRA_FLAGS} -mavx2" "${CONFIG_GPU_HADAMARD}" ${progSrc})
# phoenix_compileAndRunExample(perf_hadamard_gpu_stdpar_par_vectorize_O4 "-O4 ${GPU_EXTRA_FLAGS} -mavx2" "${CONFIG_GPU_HADAMARD}" ${progSrc})
phoenix_compileAndRunExample(perf_hadamard_gpu_stdpar_par_vectorize_O3 "-O3 ${GPU_EXTRA_FLAGS} -mavx2" "${CONFIG_GPU_HADAMARD}" ${progSrc})
phoenix_compileAndRunExample(perf_hadamard_gpu_stdpar_par_vectorize_O4 "-O4 ${GPU_EXTRA_FLAGS} -mavx2" "${CONFIG_GPU_HADAMARD}" ${progSrc})
phoenix_plotPerfLogX("hadamard_gpuparBase" perf_hadamard_gpupar_O0 perf_hadamard_gpupar_O1 perf_hadamard_gpupar_O2 perf_hadamard_gpupar_O3 perf_hadamard_gpupar_O4)
phoenix_plotPerfLogX("hadamard_gpuparParallelGPU" perf_hadamard_gpupar_O3 perf_hadamard_gpupar_vectorize_O3 perf_hadamard_gpupar_vectorize_O4
# perf_hadamard_gpu_stdpar_par_vectorize_O3 perf_hadamard_gpu_stdpar_par_vectorize_O4
perf_hadamard_gpu_stdpar_par_vectorize_O3 perf_hadamard_gpu_stdpar_par_vectorize_O4
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment