Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap rocmprim header with #ifndef #66

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
#include "fbgemm_gpu/embedding_backward_template_helpers.cuh" // @manual
#include "fbgemm_gpu/ops_utils.h" // @manual
#include "fbgemm_gpu/split_embeddings_utils.cuh" // @manual
#ifdef USE_ROCM
#include <rocprim/device/device_radix_sort.hpp>
#endif
// clang-format off
#include "fbgemm_gpu/cub_namespace_prefix.cuh" // @manual
#include <cub/device/device_radix_sort.cuh>
Expand Down Expand Up @@ -297,7 +299,7 @@ transpose_embedding_input(
}
{
size_t temp_storage_bytes = 0;
#ifdef __HIP_PLATFORM_NVIDIA__
#ifndef USE_ROCM
AT_CUDA_CHECK(
FBGEMM_GPU_CUB_NS_PREFIX cub::DeviceRadixSort::SortPairs(
nullptr,
Expand Down
Loading