Home
last modified time | relevance | path

Searched refs:DeviceX (Results 1 – 3 of 3) sorted by relevance

/external/llvm-project/parallel-libs/acxxel/examples/
Dsimple_example.cu35 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()
Dopencl_example.cpp31 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/
Dopencl_test.cpp35 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()