Update benchmark tests

This commit is contained in:
augustin64 2023-01-04 11:00:51 +01:00
parent 4ee92a8263
commit 9dfcba3551
2 changed files with 4 additions and 3 deletions

View File

@ -5,6 +5,7 @@ WD=$PWD
cd $BUILDDIR/..
make all
make build/cnn_cuda_matrix_multiplication.o
cd $WD
echo "Compiling matrix_multiplication_benchmark.cu"
@ -14,9 +15,9 @@ nvcc -ljpeg \
"$BUILDDIR/"cuda_utils.o \
-o benchmark-matrix-multiplication
echo "Compiling matrix_multiplication_benchmark.cu"
echo "Compiling convolution_benchmark.cu"
nvcc -ljpeg \
convolution_benchmark.cu \
"$BUILDDIR/"cnn_cuda_matrix_multiplication.o \
"$BUILDDIR/"cnn_cuda_convolution.o \
"$BUILDDIR/"cuda_utils.o \
-o benchmark-convolution

View File

@ -150,7 +150,7 @@ void run_convolution_test(int input_dim, int output_dim, int rows, int columns)
end = clock();
cpu_time_used = ((double) (end - start)) / CLOCKS_PER_SEC;
printf("CPU: %lf\n", rows, columns, input_dim, output_dim, cpu_time_used);
printf("CPU: %lf\n", cpu_time_used);
// Vérification de l'égalité des matrices
//printf("(%d, %d, %d, %d) Checking equality.\n", rows, columns, input_dim, output_dim);