clearly signal what makefile commands are linux only.
This commit is contained in:
parent
2d4eea8956
commit
e2558b05ba
|
@ -42,11 +42,18 @@ run: $(SRC) $(OUTPUT)
|
||||||
OMP_NUM_THREADS=1 ./$(OUTPUT) && echo
|
OMP_NUM_THREADS=1 ./$(OUTPUT) && echo
|
||||||
./$(OUTPUT_ONE_THREAD)
|
./$(OUTPUT_ONE_THREAD)
|
||||||
|
|
||||||
time:
|
multi:
|
||||||
|
OMP_NUM_THREADS=1 ./$(OUTPUT) && echo
|
||||||
|
OMP_NUM_THREADS=2 ./$(OUTPUT) && echo
|
||||||
|
OMP_NUM_THREADS=4 ./$(OUTPUT) && echo
|
||||||
|
./$(OUTPUT_ONE_THREAD) && echo
|
||||||
|
|
||||||
|
time-linux:
|
||||||
|
echo "Requires /bin/time, found on GNU/Linux systems" && echo
|
||||||
OMP_NUM_THREADS=1 /bin/time -f "Time: %es" ./$(OUTPUT) && echo
|
OMP_NUM_THREADS=1 /bin/time -f "Time: %es" ./$(OUTPUT) && echo
|
||||||
OMP_NUM_THREADS=2 /bin/time -f "Time: %es" ./$(OUTPUT) && echo
|
OMP_NUM_THREADS=2 /bin/time -f "Time: %es" ./$(OUTPUT) && echo
|
||||||
OMP_NUM_THREADS=4 /bin/time -f "Time: %es" ./$(OUTPUT) && echo
|
OMP_NUM_THREADS=4 /bin/time -f "Time: %es" ./$(OUTPUT) && echo
|
||||||
/bin/time -f "Time: %es" ./$(OUTPUT_ONE_THREAD) && echo
|
/bin/time -f "Time: %es" ./$(OUTPUT_ONE_THREAD) && echo
|
||||||
|
|
||||||
linux-install:
|
debian-install-dependencies:
|
||||||
sudo apt-get install libomp-dev
|
sudo apt-get install libomp-dev
|
||||||
|
|
|
@ -31,7 +31,7 @@ As of now, it may be useful for checking the validity of simple estimations. The
|
||||||
|
|
||||||
| Language | Time | Lines of code |
|
| Language | Time | Lines of code |
|
||||||
|--------------------------|-----------|---------------|
|
|--------------------------|-----------|---------------|
|
||||||
| C (optimized, 1 thread) | ~30ms | 183 |
|
| C (optimized, 1 thread) | 30ms | 183 |
|
||||||
| Nim | 68ms | 84 |
|
| Nim | 68ms | 84 |
|
||||||
| C | 292ms | 149 |
|
| C | 292ms | 149 |
|
||||||
| Javascript (NodeJS) | 732ms | 69 |
|
| Javascript (NodeJS) | 732ms | 69 |
|
||||||
|
|
Loading…
Reference in New Issue
Block a user