diff --git a/tests/src/hipMemcpyAsync2.cpp b/tests/src/hipMemcpyAsync2.cpp new file mode 100644 index 0000000000..4d7af21c72 --- /dev/null +++ b/tests/src/hipMemcpyAsync2.cpp @@ -0,0 +1,15 @@ +#include"test_common.h" + +#define SIZE 1024*1024 + +int main(){ + float *A, *Ad; + HIPCHECK(hipHostMalloc((void**)&A,SIZE, hipHostMallocDefault)); + HIPCHECK(hipMalloc((void**)&Ad, SIZE)); + hipStream_t stream; + HIPCHECK(hipStreamCreate(&stream)); + for(int i=0;i +#include + +#define NUM_SIZE 8 +#define NUM_ITER 1 << 30 +static size_t size[NUM_SIZE]; + +void setup(){ + for(int i=0;i