Home | History | Annotate | Download | only in bench

Lines Matching refs:cuda

30 #include "common/cuda/assert_cuda.h"
37 #include "hs/cuda/sm_35/u32/hs_cuda.h"
38 #include "hs/cuda/sm_35/u64/hs_cuda.h"
293 cuda(Malloc(&random_d,size_hi_in));
294 cuda(Malloc(&vin_d, size_hi_in));
295 cuda(Malloc(&vout_d, size_hi_out));
306 cuda(Memcpy(random_d,random_h,size_hi_in,cudaMemcpyHostToDevice));
342 cuda(EventCreate(&start));
343 cuda(EventCreate(&end));
352 cuda(Memcpy(vin_d,random_d,count*key_size,cudaMemcpyDeviceToDevice));
370 cuda(EventRecord(start,stream0));
371 cuda(StreamWaitEvent(stream1,start,0));
372 cuda(StreamWaitEvent(stream2,start,0));
384 cuda(EventRecord(end,stream0));
386 cuda(EventSynchronize(end));
390 cuda(EventElapsedTime(&elapsed,start,end));
411 cuda(Memcpy(sorted_h,vin_d, size_padded_in,cudaMemcpyDeviceToHost));
412 cuda(Memcpy(vout_h, vout_d,size_padded_in,cudaMemcpyDeviceToHost));
472 cuda(EventDestroy(start));
473 cuda(EventDestroy(end));
478 cuda(Free(random_d));
479 cuda(Free(vin_d));
480 cuda(Free(vout_d));
491 // which CUDA device?
496 cuda(GetDeviceProperties(&props,device));
498 cuda(SetDeviceFlags(cudaDeviceScheduleBlockingSync));
499 cuda(SetDevice(device));
503 cuda(DriverGetVersion(&driver_version));
517 cuda(StreamCreate(&stream0));
518 cuda(StreamCreate(&stream1));
519 cuda(StreamCreate(&stream2));
597 cuda(StreamDestroy(stream0));
598 cuda(StreamDestroy(stream1));
599 cuda(StreamDestroy(stream2));
601 cuda(DeviceReset());