Skip to content
Permalink
Browse files

fix support for older CUDA versions

The __shfl_sync stuff is CUDA 9.0+, I think.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
  • Loading branch information...
tycho committed Mar 6, 2019
1 parent 0f55bab commit e0b3f9d31041aeae2a293d807a93758513ea8ab8
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/chCUDA.h
@@ -43,6 +43,12 @@
#ifndef __cuda_drvapi_dynlink_h__
#include <cuda.h>
#endif
#include <cuda_runtime_api.h>

#if CUDART_VERSION < 9000
# define __shfl_sync(x,y,z) __shfl(y,z)
# define __shfl_xor_sync(x,y,z) __shfl_xor(y,z)
#endif

#else

0 comments on commit e0b3f9d

Please sign in to comment.
You can’t perform that action at this time.