mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-04-20 06:48:53 +00:00
Call cudaDeviceReset from NVBENCH_MAIN.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <nvbench/benchmark_base.cuh>
|
||||
#include <nvbench/benchmark_manager.cuh>
|
||||
#include <nvbench/cuda_call.cuh>
|
||||
#include <nvbench/detail/markdown_format.cuh>
|
||||
#include <nvbench/option_parser.cuh>
|
||||
|
||||
@@ -12,6 +13,7 @@
|
||||
try \
|
||||
{ \
|
||||
NVBENCH_MAIN_BODY(argc, argv); \
|
||||
NVBENCH_CUDA_CALL(cudaDeviceReset()); \
|
||||
return 0; \
|
||||
} \
|
||||
catch (std::exception & e) \
|
||||
|
||||
Reference in New Issue
Block a user