Skip to content

Commit 0989304

Browse files
committed
Platform inspection
Signed-off-by: Haoyang Li <[email protected]>
1 parent 6cb5484 commit 0989304

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

csrc/torch_bindings.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ TORCH_LIBRARY_EXPAND(CONCAT(TORCH_EXTENSION_NAME, _custom_ar), custom_ar) {
702702

703703
custom_ar.def("free_shared_buffer", &free_shared_buffer);
704704
}
705-
705+
#ifdef USE_ROCM
706706
TORCH_LIBRARY_EXPAND(CONCAT(TORCH_EXTENSION_NAME, _quick_ar), quick_ar) {
707707
// quick all reduce kernels
708708
quick_ar.def("init_quick_ar(int world_size, int rank) -> int");
@@ -719,4 +719,5 @@ TORCH_LIBRARY_EXPAND(CONCAT(TORCH_EXTENSION_NAME, _quick_ar), quick_ar) {
719719
quick_ar.impl("qr_destroy", &qr_destroy);
720720
quick_ar.impl("is_quickreduce_available", &is_quickreduce_available);
721721
}
722+
#endif
722723
REGISTER_EXTENSION(TORCH_EXTENSION_NAME)

0 commit comments

Comments
 (0)