From 4e6d350f30a2bab2b497486b5f730385bb71f228 Mon Sep 17 00:00:00 2001
From: Amir MOHAMMADI <amir.mohammadi@idiap.ch>
Date: Wed, 1 May 2019 01:47:00 +0200
Subject: [PATCH] install cuda

---
 bob/devtools/data/gitlab-ci/single-package.yaml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/bob/devtools/data/gitlab-ci/single-package.yaml b/bob/devtools/data/gitlab-ci/single-package.yaml
index 6029d345..cae4b95f 100644
--- a/bob/devtools/data/gitlab-ci/single-package.yaml
+++ b/bob/devtools/data/gitlab-ci/single-package.yaml
@@ -36,7 +36,13 @@ stages:
 .build_linux_template: &linux_build_job
   <<: *build_job
   before_script:
-    - yum install -y xorg-x11-drv-nouveau
+    - yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
+    - wget https://developer.download.nvidia.com/compute/cuda/repos/rhel6/x86_64/cuda-repo-rhel6-10.1.105-1.x86_64.rpm
+    - rpm -i cuda-repo-rhel6-10.1.105-1.x86_64.rpm
+    - yum clean all
+    - yum install -y cuda
+    - export PATH=/usr/local/cuda-10.1/bin${PATH:+:${PATH}}
+    - export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
   tags:
     - docker
   image: continuumio/conda-concourse-ci
-- 
GitLab