Skip to content

Commit

Permalink
Fp8 hipstream fix (#3127)
Browse files Browse the repository at this point in the history
Summary:
X-link: facebookresearch/FBGEMM#333

Pick hip stream where cuda is not defined

Pull Request resolved: #3127

Reviewed By: jiawenliu64

Differential Revision: D63662576

Pulled By: xw285cornell

fbshipit-source-id: cacecdd2401a5fda0cec05831a04ecd40edd4e6d
  • Loading branch information
acoskunses-AMD authored and facebook-github-bot committed Oct 10, 2024
1 parent f14ca4d commit 8e7beba
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 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 @@ -272,5 +270,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 @@ -302,5 +300,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 @@ -243,5 +241,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 @@ -200,5 +198,3 @@ at::Tensor f8f8bf16_rowwise_impl(

return Y;
}

#endif // defined(USE_ROCM)

0 comments on commit 8e7beba

Please sign in to comment.