Skip to content

Commit 2d645f2

Browse files
committed
CUDA: fix compile error for pre-C++17
1 parent 7b00c0f commit 2d645f2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

devices/cuda/curtn.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,8 @@ namespace curtn
11971197
unsigned int numExtSems,
11981198
cudaStream_t stream)
11991199
{
1200-
static_assert(sizeof(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS) == sizeof(cudaExternalSemaphoreSignalParams));
1200+
static_assert(sizeof(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS) == sizeof(cudaExternalSemaphoreSignalParams),
1201+
"unexpected size of cudaExternalSemaphoreSignalParams");
12011202

12021203
CUresult result = cuSignalExternalSemaphoresAsync(
12031204
(CUexternalSemaphore*)extSemArray,
@@ -1212,7 +1213,8 @@ namespace curtn
12121213
unsigned int numExtSems,
12131214
cudaStream_t stream)
12141215
{
1215-
static_assert(sizeof(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS) == sizeof(cudaExternalSemaphoreWaitParams));
1216+
static_assert(sizeof(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS) == sizeof(cudaExternalSemaphoreWaitParams),
1217+
"unexpected size of cudaExternalSemaphoreWaitParams");
12161218

12171219
CUresult result = cuWaitExternalSemaphoresAsync(
12181220
(CUexternalSemaphore*)extSemArray,

0 commit comments

Comments
 (0)