Home
last modified time | relevance | path

Searched refs:dev_c (Results 1 – 4 of 4) sorted by relevance

/third_party/boost/libs/fiber/examples/cuda/
Dsingle_stream.cu45 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/
Dsingle_stream.cpp45 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/
Dcuda.qbk46 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);
Dhip.qbk47 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);