Skip to content

Commit

Permalink
[ur] remove operator<< overload for definitions of handle types
Browse files Browse the repository at this point in the history
  • Loading branch information
pbalcer committed Aug 21, 2023
1 parent 858e062 commit 31be4f4
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 93 deletions.
13 changes: 0 additions & 13 deletions scripts/templates/params.hpp.mako
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,6 @@ template <typename T> inline void serializeTagged(std::ostream &os, const void *
%endfor
} // namespace ${x}_params

## TODO - should be removed as part of #789
#ifdef UR_INCLUDE_HANDLE_IMPLEMENTATION_OVERLOADS
%for spec in specs:
%for obj in spec['objects']:
%if re.match(r"handle", obj['type']):
inline std::ostream &operator<<(std::ostream &os, const struct ${th.make_type_name(n, tags, obj)}_ &){
return os;
}
%endif
%endfor
%endfor
#endif

%for spec in specs:
%for obj in spec['objects']:
## ENUM #######################################################################
Expand Down
76 changes: 0 additions & 76 deletions source/common/ur_params.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,82 +220,6 @@ inline void serializeTagged(std::ostream &os, const void *ptr,

} // namespace ur_params

#ifdef UR_INCLUDE_HANDLE_IMPLEMENTATION_OVERLOADS
inline std::ostream &operator<<(std::ostream &os,
const struct ur_adapter_handle_t_ &) {
return os;
}
inline std::ostream &operator<<(std::ostream &os,
const struct ur_platform_handle_t_ &) {
return os;
}
inline std::ostream &operator<<(std::ostream &os,
const struct ur_device_handle_t_ &) {
return os;
}
inline std::ostream &operator<<(std::ostream &os,
const struct ur_context_handle_t_ &) {
return os;
}
inline std::ostream &operator<<(std::ostream &os,
const struct ur_event_handle_t_ &) {
return os;
}
inline std::ostream &operator<<(std::ostream &os,
const struct ur_program_handle_t_ &) {
return os;
}
inline std::ostream &operator<<(std::ostream &os,
const struct ur_kernel_handle_t_ &) {
return os;
}
inline std::ostream &operator<<(std::ostream &os,
const struct ur_queue_handle_t_ &) {
return os;
}
inline std::ostream &operator<<(std::ostream &os,
const struct ur_native_handle_t_ &) {
return os;
}
inline std::ostream &operator<<(std::ostream &os,
const struct ur_sampler_handle_t_ &) {
return os;
}
inline std::ostream &operator<<(std::ostream &os,
const struct ur_mem_handle_t_ &) {
return os;
}
inline std::ostream &operator<<(std::ostream &os,
const struct ur_physical_mem_handle_t_ &) {
return os;
}
inline std::ostream &operator<<(std::ostream &os,
const struct ur_usm_pool_handle_t_ &) {
return os;
}
inline std::ostream &operator<<(std::ostream &os,
const struct ur_exp_image_handle_t_ &) {
return os;
}
inline std::ostream &operator<<(std::ostream &os,
const struct ur_exp_image_mem_handle_t_ &) {
return os;
}
inline std::ostream &operator<<(std::ostream &os,
const struct ur_exp_interop_mem_handle_t_ &) {
return os;
}
inline std::ostream &
operator<<(std::ostream &os,
const struct ur_exp_interop_semaphore_handle_t_ &) {
return os;
}
inline std::ostream &
operator<<(std::ostream &os, const struct ur_exp_command_buffer_handle_t_ &) {
return os;
}
#endif

inline std::ostream &operator<<(std::ostream &os, enum ur_function_t value);
inline std::ostream &operator<<(std::ostream &os,
enum ur_structure_type_t value);
Expand Down
2 changes: 0 additions & 2 deletions test/conformance/adapters/cuda/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ add_conformance_test_with_devices_environment(adapter-cuda
)
target_link_libraries(test-adapter-cuda PRIVATE cudadrv ur_adapter_cuda)
target_include_directories(test-adapter-cuda PRIVATE ${CUDA_DIR} "${CUDA_DIR}/../../../" )
# TODO - remove as part of #789
target_compile_definitions(test-adapter-cuda PRIVATE UR_INCLUDE_HANDLE_IMPLEMENTATION_OVERLOADS)

set_tests_properties(adapter-cuda PROPERTIES
LABELS "conformance:cuda"
Expand Down
2 changes: 0 additions & 2 deletions test/conformance/adapters/hip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ add_conformance_test_with_devices_environment(adapter-hip
)
target_link_libraries(test-adapter-hip PRIVATE rocmdrv)
target_include_directories(test-adapter-hip PRIVATE ${HIP_DIR} "${HIP_DIR}/../../..")
# TODO - remove as part of #789
target_compile_definitions(test-adapter-hip PRIVATE UR_INCLUDE_HANDLE_IMPLEMENTATION_OVERLOADS)

if(UR_HIP_PLATFORM STREQUAL "AMD")
target_compile_definitions(test-adapter-hip PRIVATE __HIP_PLATFORM_AMD__)
Expand Down

0 comments on commit 31be4f4

Please sign in to comment.