-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d39e521
commit 32ff1b6
Showing
5 changed files
with
302 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "CudaRoutines.h" | ||
|
||
__global__ void __cuda_increment(int offset, float *vec, float val) | ||
{ | ||
vec[blockIdx.x + offset] += val; | ||
} | ||
|
||
void cuda_increment(int M, int N, int offset, float *vec, float val) | ||
{ | ||
__cuda_increment<<<M, N>>>(offset, vec, val); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef __TESTING_ADIOS2_CUDA_ROUTINES_H__ | ||
#define __TESTING_ADIOS2_CUDA_ROUTINES_H__ | ||
|
||
#include <cuda.h> | ||
#include <cuda_runtime.h> | ||
|
||
void cuda_increment(int M, int N, int offset, float *vec, float val); | ||
|
||
#endif |
Oops, something went wrong.