From f8df52ad72f79a1bc97fdc72309668fe1dbb58fd Mon Sep 17 00:00:00 2001 From: AlexeyAB Date: Sun, 28 Feb 2021 09:11:22 +0300 Subject: [PATCH] minor fix --- src/dark_cuda.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dark_cuda.c b/src/dark_cuda.c index 55272724..65ffcc4c 100644 --- a/src/dark_cuda.c +++ b/src/dark_cuda.c @@ -299,6 +299,10 @@ cudaStream_t switch_stream(int i) { return switchStreamsArray[i]; } +#ifndef cudaEventWaitDefault +#define cudaEventWaitDefault 0x00 +#endif // cudaEventWaitDefault + static const max_events = 1024; static cudaEvent_t switchEventsArray[1024]; static volatile int event_counter = 0;