Skip to content

Commit 0632ec9

Browse files
committed
added extra commands for apple silicon, and redundancy check file
1 parent 71c3c03 commit 0632ec9

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ RUN source ~/anaconda3/bin/activate && \
5959
COPY . .
6060

6161
# Run git-lfs pull to get large files
62-
RUN git lfs install && \
63-
git lfs pull && \
64-
git lfs fetch --all \
65-
&& git lfs checkout
62+
#RUN git lfs install && \
63+
# git lfs pull && \
64+
# git lfs fetch --all \
65+
# && git lfs checkout
6666

6767
# if we are on a windows host, we need to remove the CRLF characters from all the files
6868
#RUN find . -type f -exec sed -i 's/\r$//' {} +

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ cd ./gpu-flopbench
6565
6666
docker build --progress=plain -t 'gpu-flopbench' .
6767
68+
## Alternative docker build if host machine is Apple Silicon (M1/2/3/4)
69+
docker build --platform=linux/amd64 -t 'gpu-flopbench' .
70+
6871
docker run -ti --gpus all --name gpu-flopbench-container --runtime=nvidia -e NVIDIA_DRIVER_CAPABILITIES=compute,utility -e NVIDIA_VISIBLE_DEVICES=all gpu-flopbench
6972
7073
docker exec -it gpu-flopbench-container /bin/bash

runBuild.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,5 @@ cmake -DCMAKE_C_COMPILER=clang \
7070
-S../ -B./
7171

7272
make -j20 all
73+
74+
ls -a *-cuda > builtCUDACodes.txt

0 commit comments

Comments
 (0)