Searched refs:dev_c0 (Results 1 – 2 of 2) sorted by relevance
/third_party/boost/libs/fiber/examples/cuda/ |
D | multiple_streams.cu | 47 int * dev_a0, * dev_b0, * dev_c0; in main() local 51 cudaMalloc( & dev_c0, size * sizeof( int) ); in main() 66 … vector_add<<< size / 256, 256, 0, stream0 >>>( dev_a0, dev_b0, dev_c0, size); in main() 68 … cudaMemcpyAsync( host_c + i, dev_c0, size * sizeof( int), cudaMemcpyDeviceToHost, stream0); in main() 82 cudaFree( dev_c0); in main()
|
/third_party/boost/libs/fiber/examples/hip/ |
D | multiple_streams.cpp | 46 int * dev_a0, * dev_b0, * dev_c0; in main() local 50 hipMalloc( & dev_c0, size * sizeof( int) ); in main() 65 …ipLaunchKernel( vector_add, dim3(size / 256), dim3(256), 0, stream0, dev_a0, dev_b0, dev_c0, size); in main() 67 … hipMemcpyAsync( host_c + i, dev_c0, size * sizeof( int), hipMemcpyDeviceToHost, stream0); in main() 81 hipFree( dev_c0); in main()
|