Skip to content

Commit

Permalink
Merge pull request #8 from bokutotu/add_test
Browse files Browse the repository at this point in the history
Add test
  • Loading branch information
bokutotu authored May 4, 2024
2 parents 6eb68f1 + a8cc7d8 commit 5f0f7af
Show file tree
Hide file tree
Showing 3 changed files with 557 additions and 586 deletions.
2 changes: 1 addition & 1 deletion zenu-cuda-kernel-sys/kernel/array_scalar.cu
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__global__ void vector_scalar_##func##_##type(type* vec, int size, int stride_v, type scalar, type* result, int stride_r) { \
int idx = blockIdx.x * blockDim.x + threadIdx.x; \
if (idx < size) { \
result[idx * stride_v] = vec[idx * stride_r] op scalar; \
result[idx * stride_r] = vec[idx * stride_v] op scalar; \
} \
} \
__global__ void vector_scalar_##assign_func##_##type(type* vec, int size, int stride, type scalar) { \
Expand Down
Loading

0 comments on commit 5f0f7af

Please sign in to comment.