search for: host_result

Displaying 3 results from an estimated 3 matches for "host_result".

Did you mean: got_result
2016 Mar 09
2
RFC: Proposing an LLVM subproject for parallelism runtime and support libraries
...float kernel_input_argument = 42.5f; stream.Init() .ThenLaunch(se::ThreadDim(), se::BlockDim(), kernel, kernel_input_argument, result.ptr()) .BlockHostUntilDone(); // Copy the result of the kernel call from device back to the host. float host_result = 0.0f; executor->SynchronousMemcpyD2H(result.cref(), sizeof(host_result), &host_result); // Verify that the correct result was computed. assert((kernel_input_argument + MYSTERY_VALUE) == host_result); } --------------------------...
2016 Mar 09
2
RFC: Proposing an LLVM subproject for parallelism runtime and support libraries
...5f; > stream.Init() > .ThenLaunch(se::ThreadDim(), se::BlockDim(), kernel, > kernel_input_argument, result.ptr()) > .BlockHostUntilDone(); > > // Copy the result of the kernel call from device back to the host. > float host_result = 0.0f; > executor->SynchronousMemcpyD2H(result.cref(), sizeof(host_result), > &host_result); > > // Verify that the correct result was computed. > assert((kernel_input_argument + MYSTERY_VALUE) == host_result); > }...
2016 Mar 10
2
RFC: Proposing an LLVM subproject for parallelism runtime and support libraries
...it() >> .ThenLaunch(se::ThreadDim(), se::BlockDim(), kernel, >> kernel_input_argument, result.ptr()) >> .BlockHostUntilDone(); >> >> // Copy the result of the kernel call from device back to the host. >> float host_result = 0.0f; >> executor->SynchronousMemcpyD2H(result.cref(), sizeof(host_result), >> &host_result); >> >> // Verify that the correct result was computed. >> assert((kernel_input_argument + MYSTERY_VALUE) == host...