Home
last modified time | relevance | path

Searched refs:host_b (Results 1 – 6 of 6) sorted by relevance

/third_party/boost/libs/fiber/examples/cuda/
Dmultiple_streams.cu43 int * host_a, * host_b, * host_c; in main() local
45 cudaHostAlloc( & host_b, full_size * sizeof( int), cudaHostAllocDefault); in main()
59 host_b[i] = distribution( generator); in main()
64 … cudaMemcpyAsync( dev_b0, host_b + i, size * sizeof( int), cudaMemcpyHostToDevice, stream0); in main()
65 … cudaMemcpyAsync( dev_b1, host_b + i + size, size * sizeof( int), cudaMemcpyHostToDevice, stream1); in main()
78 cudaFreeHost( host_b); in main()
Dsingle_stream.cu41 int * host_a, * host_b, * host_c; in main() local
43 cudaHostAlloc( & host_b, full_size * sizeof( int), cudaHostAllocDefault); in main()
53 host_b[i] = distribution( generator); in main()
57 … cudaMemcpyAsync( dev_b, host_b + i, size * sizeof( int), cudaMemcpyHostToDevice, stream); in main()
66 cudaFreeHost( host_b); in main()
/third_party/boost/libs/fiber/examples/hip/
Dmultiple_streams.cpp42 int * host_a, * host_b, * host_c; in main() local
44 hipHostMalloc( & host_b, full_size * sizeof( int), hipHostMallocDefault); in main()
58 host_b[i] = distribution( generator); in main()
63 … hipMemcpyAsync( dev_b0, host_b + i, size * sizeof( int), hipMemcpyHostToDevice, stream0); in main()
64 … hipMemcpyAsync( dev_b1, host_b + i + size, size * sizeof( int), hipMemcpyHostToDevice, stream1); in main()
77 hipHostFree( host_b); in main()
Dsingle_stream.cpp41 int * host_a, * host_b, * host_c; in main() local
43 hipHostMalloc( & host_b, full_size * sizeof( int), hipHostMallocDefault); in main()
53 host_b[i] = distribution( generator); in main()
57 … hipMemcpyAsync( dev_b, host_b + i, size * sizeof( int), hipMemcpyHostToDevice, stream); in main()
66 hipHostFree( host_b); in main()
/third_party/boost/libs/fiber/doc/
Dcuda.qbk42 int * host_a, * host_b, * host_c;
44 cudaHostAlloc( & host_b, full_size * sizeof( int), cudaHostAllocDefault);
54 host_b[i] = distribution( generator);
58 … cudaMemcpyAsync( dev_b, host_b + i, size * sizeof( int), cudaMemcpyHostToDevice, stream);
67 cudaFreeHost( host_b);
Dhip.qbk43 int * host_a, * host_b, * host_c;
45 hipHostMalloc( & host_b, full_size * sizeof( int), hipHostMallocDefault);
55 host_b[i] = distribution( generator);
59 … hipMemcpyAsync( dev_b, host_b + i, size * sizeof( int), hipMemcpyHostToDevice, stream);
68 hipHostFree( host_b);