Added directory for stress testing

[ROCm/clr commit: 8d406b68d8]
Bu işleme şunda yer alıyor:
Aditya Atluri
2016-03-31 02:14:12 -05:00
ebeveyn b7a79b9226
işleme 7b8ec8fa6d
3 değiştirilmiş dosya ile 73 ekleme ve 0 silme
+15
Dosyayı Görüntüle
@@ -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<SIZE;i++){
HIPCHECK(hipMemcpyAsync(Ad, A, SIZE, hipMemcpyHostToDevice, stream));
HIPCHECK(hipDeviceSynchronize());
}
}