Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit a9057d9

Browse files
authored
Merge pull request #423 from nicolasvasilache/pr/benchmarks
Benchmarks
2 parents 87caef1 + b9f968d commit a9057d9

21 files changed

+4116
-1403
lines changed

.jenkins/build.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,8 @@ WITH_CAFFE2=ON CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda CLANG_PREFIX=$(${CONDA_PREF
6969
python setup.py install
7070
./test_python/run_test.sh
7171

72-
FILTER_OUT=MLP_model ./test.sh
73-
./build/tc/benchmarks/MLP_model --gtest_filter=-*2LUT*
72+
FILTER_OUT="benchmark_MLP_model benchmark_kronecker" ./test.sh
73+
# 2LUT can OOM on smaller Maxwells on our CI machines
74+
./build/tc/benchmarks/benchmark_MLP_model --gtest_filter=-*2LUT*
75+
# Kronecker xxxAsMatMul can OOM
76+
./build/tc/benchmarks/benchmark_kronecker --gtest_filter=-*AsMatMul*

tc/benchmarks/CMakeLists.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,21 @@ find_library(CUDA_CUDNN_LIBRARIES cudnn
1313
PATH_SUFFIXES lib lib64)
1414

1515
################################################################################
16-
# Examples
16+
# Benchmarks
1717
################################################################################
18-
set(EXAMPLES_FILES
18+
set(BENCHMARKS
1919
batchmatmul
2020
group_convolution
21+
kronecker
22+
moments
2123
tmm
2224
MLP_model
25+
wavenet
2326
)
24-
foreach(i ${EXAMPLES_FILES})
25-
add_executable(${i} ${i}.cc)
26-
add_test(${i} ${i})
27+
foreach(i ${BENCHMARKS})
28+
add_executable(benchmark_${i} ${i}.cc)
2729
target_link_libraries(
28-
${i}
30+
benchmark_${i}
2931

3032
${CUDA_CUBLAS_LIBRARIES}
3133
${CUDA_CUDNN_LIBRARIES}

0 commit comments

Comments
 (0)