@@ -24,25 +24,25 @@ that:
2424whip lightly wraps CUDA and HIP functions. Function wrappers:
2525
2626- Are C++ lambdas to easily allow passing templated functions (like
27- ` cuda /hipMemcpy` ) into higher order functions.
27+ ` cudaMemcpy /hipMemcpy` ) into higher order functions.
2828- Check the return codes from wrapped functions and throw a ` whip::exception ` on
2929 failure.
3030
3131Wrapped types, errors, and functions have the same names as in CUDA and HIP,
3232with the ` cuda/hip ` prefix removed and the name changed to ` snake_case ` . For
33- example ` cuda /hipMemcpy` is wrapped by a `whip::error_t whip::memcpy(auto* dst,
34- const auto* , std::size_t size_bytes, whip::memcpy_kind)` function. All
33+ example ` cudaMemcpy /hipMemcpy` is wrapped by a `whip::error_t whip::memcpy(auto*
34+ dst, const auto* , std::size_t size_bytes, whip::memcpy_kind)` function. All
3535functionality is available in the ` whip ` namespace.
3636
3737There are two main exceptions to the above rules:
3838
39- - The functions ` cuda /hipEventQuery` and ` cuda/hipStreamQuery ` are expected to
40- fail under normal circumstances. The wrappers in whip (respectively
41- ` whip::event_ready ` and ` whip::stream_ready ` ) return instead a bool indicating
42- readiness.
43- The wrappers throw an exception in all other cases.
44- - ` cuda /hipGetLastError` is called ` whip::check_last_error ` instead of
45- ` whip::get_last_error ` because it throws on failure as other wrappers do.
39+ - The functions ` cudaEventQuery /hipEventQuery` and
40+ ` cudaStreamQuery/hipStreamQuery ` are expected to fail under normal
41+ circumstances. The wrappers in whip (respectively ` whip::event_ready ` and
42+ ` whip::stream_ready ` ) return instead a bool indicating readiness. The
43+ wrappers throw an exception in all other cases.
44+ - ` cudaGetLastError /hipGetLastError` is called ` whip::check_last_error ` instead
45+ of ` whip::get_last_error ` because it throws on failure as other wrappers do.
4646
4747# Usage
4848
0 commit comments