Skip to content

Commit

Permalink
Clean up Dockerfile and README
Browse files Browse the repository at this point in the history
  • Loading branch information
rbergen committed Nov 7, 2024
1 parent 5c8e79f commit 558b2b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions PrimeCPP/solution_2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ RUN apt-get update -qq \

WORKDIR /opt/app
COPY *.cpp .
RUN clang++ -march=native -mtune=native -pthread -Ofast -std=c++17 PrimeCPP_array.cpp -oprimes_array
RUN clang++ -march=native -mtune=native -pthread -Ofast -std=c++17 PrimeCPP_mask.cpp -oprimes_mask
RUN clang++ -march=native -mtune=native -pthread -Ofast -std=c++17 PrimeCPP_array.cpp -oprimes_array \
&& clang++ -march=native -mtune=native -pthread -Ofast -std=c++17 PrimeCPP_mask.cpp -oprimes_mask

FROM ubuntu:22.04

Expand Down
7 changes: 5 additions & 2 deletions PrimeCPP/solution_2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@

## Run instructions

(Linux): clang++ -march=native -mtune=native -Ofast -pthread -std=c++17 PrimeCPP_PAR.cpp -o Primes_clang++ && ./Primes_clang++
(Linux): `./run.sh`
(Windows): `.\run.cmd`

## Output

```text
Primes Benchmark (c) 2021 Dave's Garage - http://github.com/davepl/primes
-------------------------------------------------------------------------
Computing primes to 1000000 on 24 threads for 5 seconds.
Passes: 185267, Threads: 24, Time: 5.00074, Average: 2.69921e-05, Limit: 1000000, Counts: 78498/78498, Valid : Pass
davepl_par;185267;5.00074;24;algorithm=base,faithful=yes,bits=1
davepl_array;185267;5.00074;24;algorithm=base,faithful=yes,bits=1
```

0 comments on commit 558b2b0

Please sign in to comment.