-
Notifications
You must be signed in to change notification settings - Fork 37
Adds bandwidth.yml playbook for NVIDIA nvbandwidth #834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+65
−3
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
cc61ed3
Adds bandwidth.yml playbook to download, build, and run nvbandwidth.
claudia-lola 0692a33
Adds bandwidth.yml playbook for NVIDIA nvbandwidth and
claudia-lola 2552856
Merge branch 'main' into bandwidth-test
claudia-lola 5160952
changing output file name
claudia-lola b74355e
Merge branch 'bandwidth-test' of github.com:stackhpc/ansible-slurm-ap…
claudia-lola File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| --- | ||
| - name: Ensure cuda_bandwidth_path exists | ||
sjpb marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ansible.builtin.file: | ||
| state: directory | ||
| path: "{{ cuda_bandwidth_path }}" | ||
| owner: "{{ ansible_user }}" | ||
| group: "{{ ansible_user }}" | ||
| mode: "0755" | ||
|
|
||
| - name: Download CUDA bandwith test release | ||
| ansible.builtin.unarchive: | ||
| remote_src: true | ||
| src: "{{ cuda_bandwidth_release_url }}" | ||
| dest: "{{ cuda_bandwidth_path }}" | ||
| owner: "{{ ansible_user }}" | ||
| group: "{{ ansible_user }}" | ||
| creates: "{{ cuda_bandwidth_path }}/nvbandwidth-0.8" | ||
|
|
||
| - name: Creates CUDA bandwidth test build directory | ||
claudia-lola marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ansible.builtin.file: | ||
| state: directory | ||
| path: "{{ cuda_bandwidth_path }}/nvbandwidth-0.8/build" | ||
| mode: "0755" | ||
|
|
||
| - name: Ensure cudatests directory exists | ||
| ansible.builtin.file: | ||
| path: "{{ appliances_environment_root }}/cudatests" | ||
| state: directory | ||
| mode: '0755' | ||
| delegate_to: localhost | ||
|
|
||
| - name: Build CUDA bandwidth test | ||
| ansible.builtin.shell: | ||
| cmd: | | ||
| source /cvmfs/software.eessi.io/versions/2023.06/init/bash && | ||
| module load Boost/1.82.0-GCC-12.3.0 && | ||
| . /etc/profile.d/sh.local && cmake .. && | ||
| make -j {{ ansible_processor_vcpus }} | ||
| chdir: "{{ cuda_bandwidth_path }}/nvbandwidth-0.8/build" | ||
| creates: "{{ cuda_bandwidth_path }}/nvbandwidth-0.8/build/nvbandwidth" | ||
|
|
||
| - name: Run CUDA bandwidth test | ||
sjpb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ansible.builtin.shell: | | ||
sjpb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| export LD_LIBRARY_PATH=/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen4/software/GCCcore/12.3.0/lib64:\ | ||
| /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen4/software/Boost/1.82.0-GCC-12.3.0/lib | ||
| ./nvbandwidth | ||
| args: | ||
| chdir: "{{ cuda_bandwidth_path }}/nvbandwidth-0.8/build/" | ||
| register: cuda_bandwidth_output | ||
|
|
||
| - name: Save CUDA bandwidth output to bandwidth_results.txt | ||
sjpb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ansible.builtin.copy: | ||
sjpb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| content: "{{ cuda_bandwidth_output.stdout }}" | ||
| dest: "{{ appliances_environment_root }}/cudatests/bandwidth_results.txt" | ||
sjpb marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| mode: '0644' | ||
| delegate_to: localhost | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.