Skip to content

Commit

Permalink
Merge pull request #66 from avbokovoy/fix-rocm-header
Browse files Browse the repository at this point in the history
Wrap rocmprim header with #ifndef
  • Loading branch information
avbokovoy authored Aug 14, 2024
2 parents ad83687 + cf45304 commit 420a21e
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 420a21e

Please sign in to comment.