Searched refs:DeviceX (Results 1 – 3 of 3) sorted by relevance
/external/llvm-project/parallel-libs/acxxel/examples/ |
D | simple_example.cu | 35 auto DeviceX = CUDA->mallocD<float>(N).takeValue(); in saxpy() local 39 Stream.syncCopyHToD(X, DeviceX).syncCopyHToD(Y, DeviceY); in saxpy() 42 saxpyKernel<<<1, N, 0, Stream>>>(A, DeviceX, DeviceY, N); in saxpy() 45 acxxel::Status Status = Stream.syncCopyDToH(DeviceX, X).takeStatus(); in saxpy() 63 float *DeviceX; in cudaSaxpy() local 65 cudaMalloc(&DeviceX, Size); in cudaSaxpy() 69 cudaMemcpy(DeviceX, X.data(), Size, cudaMemcpyHostToDevice); in cudaSaxpy() 73 saxpyKernel<<<1, N>>>(A, DeviceX, DeviceY, N); in cudaSaxpy() 76 cudaMemcpy(X.data(), DeviceX, Size, cudaMemcpyDeviceToHost); in cudaSaxpy() 79 cudaFree(DeviceX); in cudaSaxpy()
|
D | opencl_example.cpp | 31 auto DeviceX = OpenCL->mallocD<float>(N).takeValue(); in saxpy() local 33 Stream.syncCopyHToD(X, DeviceX).syncCopyHToD(Y, DeviceY); in saxpy() 40 float *RawX = static_cast<float *>(DeviceX); in saxpy() 48 .syncCopyDToH(DeviceX, X) in saxpy()
|
/external/llvm-project/parallel-libs/acxxel/tests/ |
D | opencl_test.cpp | 35 auto DeviceX = OpenCL->mallocD<float>(Length).takeValue(); in TEST() local 37 Stream.syncCopyHToD(X, DeviceX); in TEST() 45 float *RawX = static_cast<float *>(DeviceX); in TEST() 55 Stream.syncCopyDToH(DeviceX, X); in TEST()
|