Commit b58a5b5d1a3a6b57527e02d0357370d8e2bbdf3e
1 parent
d2e21dea17
Exists in
master
Add a new script to simply list available opencl devices on the local
host on the standard output
Showing 2 changed files with 7 additions and 1 deletions Inline Diff
utils/mcmas/infos.sh
View file @
b58a5b5
#!/bin/bash | 1 | 1 | #!/bin/bash | |
2 | 2 | |||
. "${BASH_SOURCE%/*}/common.sh" | 3 | 3 | . "${BASH_SOURCE%/*}/common.sh" | |
4 | 4 | |||
if [ $# -lt 1 ]; then | 5 | 5 | if [ $# -lt 1 ]; then | |
echo "Usage: $0 <directory>" | 6 | 6 | echo "Usage: $0 <directory>" | |
exit 1 | 7 | 7 | exit 1 | |
fi | 8 | 8 | fi | |
9 | 9 | |||
DEST_DIR="$1" | 10 | 10 | DEST_DIR="$1" | |
11 | 11 | |||
if [ ! -d $DEST_DIR ]; then | 12 | 12 | if [ ! -d $DEST_DIR ]; then | |
mkdir -p $DEST_DIR | 13 | 13 | mkdir -p $DEST_DIR | |
fi | 14 | 14 | fi | |
15 | 15 | |||
cat /etc/issue > $DEST_DIR/platform_issue | 16 | 16 | cat /etc/issue > $DEST_DIR/platform_issue |
utils/mcmas/list.sh
View file @
b58a5b5
File was created | 1 | #!/bin/bash | ||
2 | ||||
3 | . "${BASH_SOURCE%/*}/common.sh" | |||
4 |