Skip to content

Commit

Permalink
Avoid including SIMD headers when compiling with nvcc
Browse files Browse the repository at this point in the history
  • Loading branch information
amadio committed Mar 17, 2023
1 parent c5bc627 commit 3511374
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion include/VecCore/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
#endif

#include "CUDA.h"
#include "SIMD.h"

#ifndef VECCORE_CUDA
# include "SIMD.h"
#endif

#ifdef _MSC_VER
#define __restrict__ __restrict
Expand Down
2 changes: 1 addition & 1 deletion include/VecCore/VecCore
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

#include "Backend/Scalar.h"
#include "Backend/ScalarWrapper.h"
#include "Backend/SIMD.h"

#if !defined(VECCORE_CUDA)
#include "Backend/SIMD.h"
#include "Backend/SIMDSizes.h"
#include "Backend/Vc.h"
#include "Backend/UMESimd.h"
Expand Down

0 comments on commit 3511374

Please sign in to comment.