Home
last modified time | relevance | path

Searched refs:dev_b (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
47 cudaMalloc( & dev_b, size * sizeof( int) ); in main()
57 … cudaMemcpyAsync( dev_b, host_b + i, size * sizeof( int), cudaMemcpyHostToDevice, stream); in main()
58 vector_add<<< size / 256, 256, 0, stream >>>( dev_a, dev_b, dev_c, size); in main()
69 cudaFree( dev_b); in main()
/third_party/boost/libs/fiber/examples/hip/
Dsingle_stream.cpp45 int * dev_a, * dev_b, * dev_c; in main() local
47 hipMalloc( & dev_b, size * sizeof( int) ); in main()
57 … hipMemcpyAsync( dev_b, host_b + i, size * sizeof( int), hipMemcpyHostToDevice, stream); in main()
58 … hipLaunchKernel( vector_add, dim3(size / 256), dim3(256), 0, stream, dev_a, dev_b, dev_c, size); in main()
69 hipFree( dev_b); in main()
/third_party/boost/libs/fiber/doc/
Dcuda.qbk46 int * dev_a, * dev_b, * dev_c;
48 cudaMalloc( & dev_b, size * sizeof( int) );
58 … cudaMemcpyAsync( dev_b, host_b + i, size * sizeof( int), cudaMemcpyHostToDevice, stream);
59 kernel<<< size / 256, 256, 0, stream >>>( size, dev_a, dev_b, dev_c);
70 cudaFree( dev_b);
Dhip.qbk47 int * dev_a, * dev_b, * dev_c;
49 hipMalloc( & dev_b, size * sizeof( int) );
59 … hipMemcpyAsync( dev_b, host_b + i, size * sizeof( int), hipMemcpyHostToDevice, stream);
60 … hipLaunchKernel(kernel, dim3(size / 256), dim3(256), 0, stream, size, dev_a, dev_b, dev_c);
71 hipFree( dev_b);