Searched refs:dev_c (Results 1 – 4 of 4) sorted by relevance
/third_party/boost/libs/fiber/examples/cuda/ |
D | single_stream.cu | 45 int * dev_a, * dev_b, * dev_c; in main() local 48 cudaMalloc( & dev_c, size * sizeof( int) ); in main() 58 vector_add<<< size / 256, 256, 0, stream >>>( dev_a, dev_b, dev_c, size); in main() 59 … cudaMemcpyAsync( host_c + i, dev_c, size * sizeof( int), cudaMemcpyDeviceToHost, stream); in main() 70 cudaFree( dev_c); in main()
|
/third_party/boost/libs/fiber/examples/hip/ |
D | single_stream.cpp | 45 int * dev_a, * dev_b, * dev_c; in main() local 48 hipMalloc( & dev_c, size * sizeof( int) ); in main() 58 … hipLaunchKernel( vector_add, dim3(size / 256), dim3(256), 0, stream, dev_a, dev_b, dev_c, size); in main() 59 … hipMemcpyAsync( host_c + i, dev_c, size * sizeof( int), hipMemcpyDeviceToHost, stream); in main() 70 hipFree( dev_c); in main()
|
/third_party/boost/libs/fiber/doc/ |
D | cuda.qbk | 46 int * dev_a, * dev_b, * dev_c; 49 cudaMalloc( & dev_c, size * sizeof( int) ); 59 kernel<<< size / 256, 256, 0, stream >>>( size, dev_a, dev_b, dev_c); 60 … cudaMemcpyAsync( host_c + i, dev_c, size * sizeof( int), cudaMemcpyDeviceToHost, stream); 71 cudaFree( dev_c);
|
D | hip.qbk | 47 int * dev_a, * dev_b, * dev_c; 50 hipMalloc( & dev_c, size * sizeof( int) ); 60 … hipLaunchKernel(kernel, dim3(size / 256), dim3(256), 0, stream, size, dev_a, dev_b, dev_c); 61 … hipMemcpyAsync( host_c + i, dev_c, size * sizeof( int), hipMemcpyDeviceToHost, stream); 72 hipFree( dev_c);
|