Browse Source

Install oclfft in staging

Matthias Vogelgesang 10 years ago
parent
commit
9aec5866e5
2 changed files with 20 additions and 0 deletions
  1. 14 0
      roles/compute-staging/handlers/main.yml
  2. 6 0
      roles/compute-staging/tasks/main.yml

+ 14 - 0
roles/compute-staging/handlers/main.yml

@@ -1,5 +1,19 @@
 ---
 
+- name: configure oclfft
+  command: chdir=/opt/oclfft cmake . -DCMAKE_BUILD_TYPE=Release
+  notify:
+    - build oclfft
+
+- name: build oclfft
+  command: chdir=/opt/oclfft make
+  notify:
+    - install oclfft
+
+- name: install oclfft
+  command: chdir=/opt/oclfft make install
+
+
 # Configure and build core library
 #
 - name: configure ufo-core

+ 6 - 0
roles/compute-staging/tasks/main.yml

@@ -1,4 +1,10 @@
 ---
+- name: fetch oclfft sources
+  git: repo=http://ufo.kit.edu/git/oclfft.git
+       dest=/opt/oclfft
+  notify:
+    - configure oclfft
+
 - name: fetch ufo sources
   git: repo=https://github.com/ufo-kit/{{ item }}.git
        dest=/opt/{{ item }}