-
Notifications
You must be signed in to change notification settings - Fork 57
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
Update main benchmark script #375
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
0d006b3
Fix argument order
stavros11 ea2ba5c
Remove nqubits_list
stavros11 573e34a
Fix logging
stavros11 f4608c0
Fix measurements
stavros11 b8a7d8d
Update test
stavros11 6642fd6
Update docs
stavros11 892be18
Fix tests
stavros11 7d77d17
Remove utils
stavros11 2188565
Fix accelerators documentation
stavros11 9efd467
Example bash script
stavros11 5eb964a
Remove utils from example tests
stavros11 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
There are no files selected for viewing
This file contains 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 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 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 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,32 @@ | ||
# example bash file for executing `main.py` benchmarks | ||
# device configurations and `nqubits` are based on DGX machine with | ||
# 4x V100 32GB GPUs | ||
FILENAME="dgx.dat" # log file name | ||
export CUDA_VISIBLE_DEVICES="0" | ||
for NQUBITS in 20 21 22 23 24 25 26 27 28 29 30 | ||
do | ||
python main.py --type qft --nqubits $NQUBITS --filename $FILENAME | ||
python main.py --type qft --nqubits $NQUBITS --filename $FILENAME --precision "single" | ||
python main.py --type variational --nqubits $NQUBITS --filename $FILENAME | ||
python main.py --type variational --nqubits $NQUBITS --filename $FILENAME --precision "single" | ||
done | ||
python main.py --type qft --nqubits 31 --filename $FILENAME --precision "single" | ||
python main.py --type variational --nqubits 31 --filename $FILENAME --precision "single" | ||
export CUDA_VISIBLE_DEVICES="" | ||
for NQUBITS in 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | ||
do | ||
python main.py --type qft --nqubits $NQUBITS --filename $FILENAME | ||
python main.py --type variational --nqubits $NQUBITS --filename $FILENAME | ||
done | ||
|
||
export CUDA_VISIBLE_DEVICES="0,1" | ||
ACCEL="1/GPU:0,1/GPU:1" | ||
python main.py --type qft --nqubits 31 --filename $FILENAME --device "/CPU:0" --accelerators $ACCEL | ||
python main.py --type qft --nqubits 32 --filename $FILENAME --device "/CPU:0" --accelerators $ACCEL --precision "single" | ||
export CUDA_VISIBLE_DEVICES="0,1,2,3" | ||
ACCEL="1/GPU:0,1/GPU:1,1/GPU:2,1/GPU:3" | ||
python main.py --type qft --nqubits 32 --filename $FILENAME --device "/CPU:0" --accelerators $ACCEL | ||
python main.py --type qft --nqubits 33 --filename $FILENAME --device "/CPU:0" --accelerators $ACCEL --precision "single" | ||
ACCEL="2/GPU:0,2/GPU:1,2/GPU:2,2/GPU:3" | ||
python main.py --type qft --nqubits 33 --filename $FILENAME --device "/CPU:0" --accelerators $ACCEL | ||
python main.py --type qft --nqubits 34 --filename $FILENAME --device "/CPU:0" --accelerators $ACCEL --precision "single" |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would mention that the number in the front corresponds to the reuse?