Skip to content

Commit

Permalink
update CUDA_TRY macross to explicitly cast cuda status to int (#514)
Browse files Browse the repository at this point in the history
This change is needed for compatibility with compile-time checks in fmt v10.1.1

Signed-off-by: Gregory R. Lee <[email protected]>
  • Loading branch information
grlee77 authored Sep 26, 2024
1 parent 53e408c commit c5c9435
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion operators/orsi/orsi_format_converter/format_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
__LINE__, \
__FILE__, \
cudaGetErrorString(_holoscan_cuda_err), \
_holoscan_cuda_err); \
static_cast<int>(_holoscan_cuda_err)); \
} \
_holoscan_cuda_err; \
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
__LINE__, \
__FILE__, \
cudaGetErrorString(_holoscan_cuda_err), \
_holoscan_cuda_err); \
static_cast<int>(_holoscan_cuda_err)); \
} \
_holoscan_cuda_err; \
})
Expand Down
2 changes: 1 addition & 1 deletion operators/orsi/orsi_visualizer/lib/vis_orsi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
__LINE__, \
__FILE__, \
cudaGetErrorString(_holoscan_cuda_err), \
_holoscan_cuda_err); \
static_cast<int>(_holoscan_cuda_err)); \
} \
_holoscan_cuda_err; \
})
Expand Down
2 changes: 1 addition & 1 deletion operators/qt_video/opengl_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
__LINE__, \
__FILE__, \
cudaGetErrorString(_holoscan_cuda_err), \
_holoscan_cuda_err); \
static_cast<int>(_holoscan_cuda_err)); \
} \
_holoscan_cuda_err; \
})
Expand Down
2 changes: 1 addition & 1 deletion operators/qt_video/qt_video_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
__LINE__, \
__FILE__, \
cudaGetErrorString(_holoscan_cuda_err), \
_holoscan_cuda_err); \
static_cast<int>(_holoscan_cuda_err)); \
} \
_holoscan_cuda_err; \
})
Expand Down
2 changes: 1 addition & 1 deletion operators/velodyne_lidar/cpp/velodyne_convert_xyz.cu
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ __constant__ double d_vlp16_cos_pitch[data_collection::sensors::kVLP16LineCount]
__LINE__, \
__FILE__, \
cudaGetErrorString(cuda_status), \
cuda_status); \
static_cast<int>(cuda_status)); \
throw std::runtime_error("Unable to copy device to host"); \
} \
}
Expand Down
2 changes: 1 addition & 1 deletion operators/velodyne_lidar/cpp/velodyne_lidar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
__LINE__, \
__FILE__, \
cudaGetErrorString(cuda_status), \
cuda_status); \
static_cast<int>(cuda_status)); \
throw std::runtime_error("Unable to copy device to host"); \
} \
}
Expand Down

0 comments on commit c5c9435

Please sign in to comment.