Home
last modified time | relevance | path

Searched refs:host_a (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
44 cudaHostAlloc( & host_a, full_size * sizeof( int), cudaHostAllocDefault); in main()
58 host_a[i] = distribution( generator); in main()
62 … cudaMemcpyAsync( dev_a0, host_a + i, size * sizeof( int), cudaMemcpyHostToDevice, stream0); in main()
63 … cudaMemcpyAsync( dev_a1, host_a + i + size, size * sizeof( int), cudaMemcpyHostToDevice, stream1); in main()
77 cudaFreeHost( host_a); in main()
Dsingle_stream.cu41 int * host_a, * host_b, * host_c; in main() local
42 cudaHostAlloc( & host_a, full_size * sizeof( int), cudaHostAllocDefault); in main()
52 host_a[i] = distribution( generator); in main()
56 … cudaMemcpyAsync( dev_a, host_a + i, size * sizeof( int), cudaMemcpyHostToDevice, stream); in main()
65 cudaFreeHost( host_a); in main()
/third_party/boost/libs/fiber/examples/hip/
Dmultiple_streams.cpp42 int * host_a, * host_b, * host_c; in main() local
43 hipHostMalloc( & host_a, full_size * sizeof( int), hipHostMallocDefault); in main()
57 host_a[i] = distribution( generator); in main()
61 … hipMemcpyAsync( dev_a0, host_a + i, size * sizeof( int), hipMemcpyHostToDevice, stream0); in main()
62 … hipMemcpyAsync( dev_a1, host_a + i + size, size * sizeof( int), hipMemcpyHostToDevice, stream1); in main()
76 hipHostFree( host_a); in main()
Dsingle_stream.cpp41 int * host_a, * host_b, * host_c; in main() local
42 hipHostMalloc( & host_a, full_size * sizeof( int), hipHostMallocDefault); in main()
52 host_a[i] = distribution( generator); in main()
56 … hipMemcpyAsync( dev_a, host_a + i, size * sizeof( int), hipMemcpyHostToDevice, stream); in main()
65 hipHostFree( host_a); in main()
/third_party/boost/libs/fiber/doc/
Dcuda.qbk42 int * host_a, * host_b, * host_c;
43 cudaHostAlloc( & host_a, full_size * sizeof( int), cudaHostAllocDefault);
53 host_a[i] = distribution( generator);
57 … cudaMemcpyAsync( dev_a, host_a + i, size * sizeof( int), cudaMemcpyHostToDevice, stream);
66 cudaFreeHost( host_a);
Dhip.qbk43 int * host_a, * host_b, * host_c;
44 hipHostMalloc( & host_a, full_size * sizeof( int), hipHostMallocDefault);
54 host_a[i] = distribution( generator);
58 … hipMemcpyAsync( dev_a, host_a + i, size * sizeof( int), hipMemcpyHostToDevice, stream);
67 hipHostFree( host_a);