diff --git a/benchmarks/concurrency.cpp b/benchmarks/concurrency.cpp index 9374a99d0f..55d03ce15f 100755 --- a/benchmarks/concurrency.cpp +++ b/benchmarks/concurrency.cpp @@ -172,10 +172,10 @@ struct ticket_mutex { }; struct sem_mutex { - void lock() noexcept { + _ABI void lock() noexcept { c.acquire(); } - void unlock() noexcept { + _ABI void unlock() noexcept { c.release(); } sem_mutex() : c(1) { } diff --git a/benchmarks/concurrency.cu b/benchmarks/concurrency.cu index 1b82814fa8..e3b7bf5832 100644 --- a/benchmarks/concurrency.cu +++ b/benchmarks/concurrency.cu @@ -1 +1 @@ -#include "benchmark.cpp" +#include "concurrency.cpp"