Skip to content

Commit

Permalink
removing redundant ROCM checks from hip files
Browse files Browse the repository at this point in the history
  • Loading branch information
acoskunses-AMD committed Sep 30, 2024
1 parent 0d5acd1 commit 05e9b76
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
#include <c10/hip/HIPStream.h>
#include <torch/torch.h>

#if defined(USE_ROCM)

#include "ck/ck.hpp"
#include "ck/tensor_operation/gpu/device/gemm_specialization.hpp"
#include "ck/tensor_operation/gpu/device/tensor_layout.hpp"
Expand Down Expand Up @@ -273,4 +271,3 @@ at::Tensor f8f8bf16_blockwise(

} // namespace fbgemm_gpu

#endif // defined(USE_ROCM)
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
#include <c10/hip/HIPStream.h>
#include <torch/torch.h>

#if defined(USE_ROCM)

#include "kernels/fp8_rowwise_kernel_manifest.h"

namespace fbgemm_gpu {
Expand Down Expand Up @@ -303,4 +301,3 @@ at::Tensor f8f8bf16_rowwise(

} // namespace fbgemm_gpu

#endif // defined(USE_ROCM)
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
#include <c10/hip/HIPStream.h>
#include <torch/torch.h>

#if defined(USE_ROCM)

#include "ck/ck.hpp"
#include "ck/tensor_operation/gpu/device/gemm_specialization.hpp"
#include "ck/tensor_operation/gpu/device/tensor_layout.hpp"
Expand Down Expand Up @@ -244,4 +242,3 @@ at::Tensor f8f8bf16_tensorwise(

} // namespace fbgemm_gpu

#endif // defined(USE_ROCM)
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
#include <c10/cuda/CUDAStream.h>
#include <torch/torch.h>

#if defined(USE_ROCM)

#include "ck/ck.hpp"
#include "ck/tensor_operation/gpu/device/gemm_specialization.hpp"
#include "ck/tensor_operation/gpu/device/tensor_layout.hpp"
Expand Down Expand Up @@ -201,4 +199,3 @@ at::Tensor f8f8bf16_rowwise_impl(
return Y;
}

#endif // defined(USE_ROCM)

0 comments on commit 05e9b76

Please sign in to comment.