Searched refs:dev_b (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 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/ |
D | single_stream.cpp | 45 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/ |
D | cuda.qbk | 46 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);
|
D | hip.qbk | 47 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);
|