Skip to content

Commit

Permalink
make pascal compile (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ph0rk0z authored Jun 8, 2023
1 parent e449281 commit ab81db1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion exllama_ext/cuda_compat.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ __device__ __forceinline__ void atomicAdd_half2(half2* address, half2 val)
#if __CUDA_ARCH__ < 700 || defined(USE_ROCM)

__device__ __forceinline__ void atomicAdd(half* address, half val) { atomicAdd_half(address, val); }

#if __CUDA_ARCH__ < 600 || defined(USE_ROCM)
__device__ __forceinline__ void atomicAdd(half2* address, half2 val) { atomicAdd_half2(address, val); }
#endif

#endif
#endif

#endif
#endif

0 comments on commit ab81db1

Please sign in to comment.