Skip to content

Commit

Permalink
Rename debug print method
Browse files Browse the repository at this point in the history
  • Loading branch information
matmanc committed Feb 6, 2025
1 parent 4770e56 commit 1c97e36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions include/cudawrappers/cu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,8 @@ class GraphMemCopyToDeviceNodeParams : public Wrapper<CUDA_MEMCPY3D> {
size_t size_y, size_t size_z,
size_t pitch = 0) {
#if defined(__HIP__)
memset(&_obj, 0, sizeof(hipMemcpy3DParms));

std::fill(&_obj, 0, sizeof(hipMemcpy3DParms));
if (pitch == 0) {
pitch = size_x * element_size;
}
Expand Down Expand Up @@ -855,7 +856,7 @@ class Graph : public Wrapper<CUgraph> {
#endif
}

void debugDotFile(
void debugDotPrint(
std::string path,
CUgraphDebugDot_flags flags =
CUgraphDebugDot_flags::CU_GRAPH_DEBUG_DOT_FLAGS_VERBOSE) {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ TEST_CASE("Test cu::Graph", "[graph]") {
graph.addKernelNode(execute_kernel, {copy_to_dev}, kernel_params);

graph.addMemCpyNode(copy_to_host, {execute_kernel}, copy_to_host_params);
graph.debugDotFile("graph.dot");
graph.debugDotPrint("graph.dot");
std::ifstream f("graph.dot");
CHECK(f.good());
f.close();
Expand Down

0 comments on commit 1c97e36

Please sign in to comment.