From a39c10f04af9af8cd02479de4038e0152dfb9445 Mon Sep 17 00:00:00 2001 From: Patrick Stotko Date: Fri, 8 May 2020 11:58:13 +0200 Subject: [PATCH] compiler: Fix NVCC detection --- src/stdgpu/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdgpu/compiler.h b/src/stdgpu/compiler.h index a463a2e96..042ecba00 100644 --- a/src/stdgpu/compiler.h +++ b/src/stdgpu/compiler.h @@ -82,7 +82,7 @@ namespace stdgpu * \hideinitializer * \brief The detected device compiler */ -#if defined(__CUDACC__) +#if defined(__NVCC__) #define STDGPU_DEVICE_COMPILER STDGPU_DEVICE_COMPILER_NVCC #elif defined(__HCC__) || defined(__HIP__) #define STDGPU_DEVICE_COMPILER STDGPU_DEVICE_COMPILER_HCC