Searched refs:host_a (Results 1 – 6 of 6) sorted by relevance
/third_party/boost/libs/fiber/examples/cuda/ |
D | multiple_streams.cu | 43 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()
|
D | single_stream.cu | 41 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/ |
D | multiple_streams.cpp | 42 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()
|
D | single_stream.cpp | 41 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/ |
D | cuda.qbk | 42 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);
|
D | hip.qbk | 43 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);
|