-
Notifications
You must be signed in to change notification settings - Fork 24
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
Ab tensorize speed up #552
Changes from all commits
fe93385
46c9826
f911a0d
8f1a205
b96c3a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# use this script to validate the tensors created by the tensorize.sh script | ||
# expects two positional arguments: directory containing the tensors and the number of threads to use | ||
# example: ./validate_tensors.sh /mnt/disks/tensors/ 20 | tee completed_tensors.txt | ||
# the output will be in the following form: | ||
# OK - /mnt/disks/tensors/ukb1234.hd5 | ||
# BAD - /mnt/disks/tensors/ukb5678.hd5 | ||
|
||
|
||
INPUT_TENSORS_DIR=$1 | ||
NUMBER_OF_THREADS=$2 | ||
|
||
|
||
find ${INPUT_TENSORS_DIR}/*.hd5 | \ | ||
xargs -P ${NUMBER_OF_THREADS} -I {} \ | ||
bash -c "h5dump -n {} | (grep -q 'HDF5 \"{}\"' && echo 'OK - {}' || echo 'BAD - {}')" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How does the script know if an HD5 bad here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah this was one thing I wanted to check about, but basically it looks for output which starts with "HDF5" and then the file path and then information inside the file, so all it really does is check that h5dump doesn't exit - that seems to indicate it's not corrupt, but doesn't check anything about the actual contents. |
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.
<3