-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 1.28 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
run_v2:
./output_v2
run_v1:
./output_v1
dependencies:
brew tap nlohmann/json
brew install nlohmann-json
brew install libomp
@echo "If the above command didn't work, please figure out how to install it on your system: https://github.com/nlohmann/json. You might need to run sudo apt-get install nlohmann-json3-dev if you're working on linux "
install_benchmark:
git clone https://github.com/google/benchmark.git
git clone https://github.com/google/googletest.git benchmark/googletest
cd benchmark
cmake -E make_directory "build"
cmake -E chdir "build" cmake -DCMAKE_BUILD_TYPE=Release ../
cmake --build "build" --config Release
optimized_v3:
nvcc optimized_wsd_v3.cu -o output_v3
unoptimized_v3:
g++ unoptimized_wsd_v3.cpp -I/usr/local/Cellar/nlohmann-json/3.9.1_1/include -std=c++11 -o output_v3
unoptimized_v2:
g++ unoptimized_wsd_v2.cpp -I/usr/local/Cellar/nlohmann-json/3.9.1_1/include -std=c++11 -o output_v2
optimized_v2:
g++ -Xpreprocessor -fopenmp optimized_wsd_v2.cpp -lomp -I/usr/local/Cellar/nlohmann-json/3.9.1_1/include -std=c++11 -o output_v2
unoptimized_v1:
g++ unoptimized_wsd_v1.cpp -I/usr/local/Cellar/nlohmann-json/3.9.1_1/include -std=c++11 -o output_v1
optimized_v1:
g++ optimized_wsd_v1.cpp -I/usr/local/Cellar/nlohmann-json/3.9.1_1/include -std=c++11 -o output_v1