"sgl-kernel/python/sgl_kernel/load_utils.py" did not exist on "21337b22b960c8bca5410c73ba4f36bfca72443c"
Commit d1167d95 authored by rusty1s's avatar rusty1s
Browse files

typo

parent 9f159a77
...@@ -24,7 +24,6 @@ struct TensorInfo { ...@@ -24,7 +24,6 @@ struct TensorInfo {
#define KERNEL_LOOP(I, N) \ #define KERNEL_LOOP(I, N) \
for (int I = blockIdx.x * blockDim.x + threadIdx.x; I < N; i += blockDim.x * gridDim.x) for (int I = blockIdx.x * blockDim.x + threadIdx.x; I < N; i += blockDim.x * gridDim.x)
/* #define KERNEL_RUN(NAME, DIMS, N, PARAMS) \ */
#define KERNEL_RUN(NAME, DIMS, N, ...) { \ #define KERNEL_RUN(NAME, DIMS, N, ...) { \
int grid = GET_BLOCKS(N); \ int grid = GET_BLOCKS(N); \
cudaStream_t stream = THCState_getCurrentStream(state); \ cudaStream_t stream = THCState_getCurrentStream(state); \
...@@ -44,4 +43,6 @@ static inline __device__ bool eq(int32_t a, int32_t b) { return a == b; } ...@@ -44,4 +43,6 @@ static inline __device__ bool eq(int32_t a, int32_t b) { return a == b; }
static inline __device__ bool eq(int64_t a, int64_t b) { return a == b; } static inline __device__ bool eq(int64_t a, int64_t b) { return a == b; }
static inline __device__ bool eq( float a, float b) { return a == b; } static inline __device__ bool eq( float a, float b) { return a == b; }
static inline __device__ bool eq( double a, double b) { return a == b; } static inline __device__ bool eq( double a, double b) { return a == b; }
#ifdef CUDA_HALF_TENSOR
static inline __device__ bool eq(half a, half b) { return __half2float(a) == __half2float(b); } static inline __device__ bool eq(half a, half b) { return __half2float(a) == __half2float(b); }
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment