|
1 | 1 | --- |
2 | | -- name: Ensure cuda_bandwidth_path exists |
| 2 | +- name: Ensure CUDA bandwidth path exists |
3 | 3 | ansible.builtin.file: |
4 | 4 | state: directory |
5 | 5 | path: "{{ cuda_bandwidth_path }}" |
|
14 | 14 | dest: "{{ cuda_bandwidth_path }}" |
15 | 15 | owner: "{{ ansible_user }}" |
16 | 16 | group: "{{ ansible_user }}" |
17 | | - creates: "{{ cuda_bandwidth_path }}/nvbandwidth-0.8" |
| 17 | + creates: "{{ cuda_bandwidth_path }}/nvbandwidth-{{ cuda_bandwidth_version }}" |
18 | 18 |
|
19 | 19 | - name: Creates CUDA bandwidth test build directory |
20 | 20 | ansible.builtin.file: |
21 | 21 | state: directory |
22 | | - path: "{{ cuda_bandwidth_path }}/nvbandwidth-0.8/build" |
| 22 | + path: "{{ cuda_bandwidth_path }}/nvbandwidth-{{ cuda_bandwidth_version }}/build" |
23 | 23 | mode: "0755" |
24 | 24 |
|
25 | 25 | - name: Ensure cudatests directory exists |
|
31 | 31 |
|
32 | 32 | - name: Build CUDA bandwidth test |
33 | 33 | ansible.builtin.shell: |
34 | | - cmd: | |
| 34 | + cmd: > |
35 | 35 | source /cvmfs/software.eessi.io/versions/2023.06/init/bash && |
| 36 | + module load buildenv/default-foss-2023b && |
36 | 37 | module load Boost/1.82.0-GCC-12.3.0 && |
37 | | - . /etc/profile.d/sh.local && cmake .. && |
| 38 | + . /etc/profile.d/sh.local && |
| 39 | + cmake .. && |
38 | 40 | make -j {{ ansible_processor_vcpus }} |
39 | | - chdir: "{{ cuda_bandwidth_path }}/nvbandwidth-0.8/build" |
40 | | - creates: "{{ cuda_bandwidth_path }}/nvbandwidth-0.8/build/nvbandwidth" |
| 41 | + chdir: "{{ cuda_bandwidth_path }}/nvbandwidth-{{ cuda_bandwidth_version }}/build" |
| 42 | + creates: "{{ cuda_bandwidth_path }}/nvbandwidth-{{ cuda_bandwidth_version }}/build/nvbandwidth" |
41 | 43 |
|
42 | 44 | - name: Run CUDA bandwidth test |
43 | 45 | ansible.builtin.shell: | |
44 | | - export LD_LIBRARY_PATH=/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen4/software/GCCcore/12.3.0/lib64:\ |
45 | | - /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen4/software/Boost/1.82.0-GCC-12.3.0/lib |
46 | 46 | ./nvbandwidth |
47 | 47 | args: |
48 | | - chdir: "{{ cuda_bandwidth_path }}/nvbandwidth-0.8/build/" |
| 48 | + chdir: "{{ cuda_bandwidth_path }}/nvbandwidth-{{ cuda_bandwidth_version }}/build/" |
49 | 49 | register: cuda_bandwidth_output |
| 50 | + changed_when: true |
50 | 51 |
|
51 | 52 | - name: Save CUDA bandwidth output to bandwidth_results.txt |
52 | 53 | ansible.builtin.copy: |
53 | 54 | content: "{{ cuda_bandwidth_output.stdout }}" |
54 | | - dest: "{{ appliances_environment_root }}/cudatests/bandwidth_results.txt" |
| 55 | + dest: "{{ appliances_environment_root }}/cudatests/{{ inventory_hostname }}bandwidth_results.txt" |
55 | 56 | mode: '0644' |
56 | 57 | delegate_to: localhost |
0 commit comments