Skip to content

Commit 04a1f1c

Browse files
LuLu
authored andcommitted
delete unused functions
1 parent 3cd4867 commit 04a1f1c

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

source/op/cuda/descrpt_se_a.cu

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,6 @@ inline void cudaAssert(cudaError_t code, const char *file, int line, bool abort=
4040
}
4141
}
4242

43-
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 600
44-
static __inline__ __device__ double atomicAdd(double* address, double val) {
45-
unsigned long long int* address_as_ull = (unsigned long long int*)address;
46-
unsigned long long int old = *address_as_ull, assumed;
47-
do {
48-
assumed = old;
49-
old = atomicCAS(address_as_ull, assumed,
50-
__double_as_longlong(val + __longlong_as_double(assumed)));
51-
// Note: uses integer comparison to avoid hang in case of NaN (since NaN != NaN) } while (assumed != old);
52-
} while (assumed != old);
53-
return __longlong_as_double(old);
54-
}
55-
#endif
56-
5743
template <
5844
typename Key,
5945
int BLOCK_THREADS,

source/op/cuda/descrpt_se_r.cu

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,6 @@ inline void cudaAssert(cudaError_t code, const char *file, int line, bool abort=
4141
}
4242
}
4343

44-
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 600
45-
static __inline__ __device__ double atomicAdd(double* address, double val) {
46-
unsigned long long int* address_as_ull = (unsigned long long int*)address;
47-
unsigned long long int old = *address_as_ull, assumed;
48-
do {
49-
assumed = old;
50-
old = atomicCAS(address_as_ull, assumed,
51-
__double_as_longlong(val + __longlong_as_double(assumed)));
52-
// Note: uses integer comparison to avoid hang in case of NaN (since NaN != NaN) } while (assumed != old);
53-
} while (assumed != old);
54-
return __longlong_as_double(old);
55-
}
56-
#endif
57-
5844
template <
5945
typename Key,
6046
int BLOCK_THREADS,

0 commit comments

Comments
 (0)