Skip to content

Commit

Permalink
reformated curlys for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
NguyenNhuDi committed Oct 11, 2024
1 parent 1fbb75f commit a2a4b8e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/test_utils_hipgraphs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,18 @@ namespace test_utils
hipGraphExec_t graph_instance;
public:

inline void startStreamCapture(hipStream_t & stream){
inline void startStreamCapture(hipStream_t & stream)
{
HIP_CHECK_NON_VOID(hipStreamBeginCapture(stream, hipStreamCaptureModeGlobal));
}

inline void endStreamCapture(hipStream_t & stream){
inline void endStreamCapture(hipStream_t & stream)
{
HIP_CHECK_NON_VOID(hipStreamEndCapture(stream, &graph));
}

inline void createAndLaunchGraph(hipStream_t & stream, const bool launchGraph=true, const bool sync=true){
inline void createAndLaunchGraph(hipStream_t & stream, const bool launchGraph=true, const bool sync=true)
{

endStreamCapture(stream);

Expand Down

0 comments on commit a2a4b8e

Please sign in to comment.