Skip to content

Commit

Permalink
xHip stream fix for non cuda env
Browse files Browse the repository at this point in the history
  • Loading branch information
acoskunses-AMD committed Sep 12, 2024
1 parent 1f166ba commit 863f596
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
#include <numeric>

#include <ATen/ATen.h>
#if !defined(USE_ROCM)
#include <c10/cuda/CUDAStream.h>
#endif
#include <torch/torch.h>

#if defined(USE_ROCM)

#include <c10/hip/HIPStream.h>
#include "ck/ck.hpp"
#include "ck/tensor_operation/gpu/device/gemm_specialization.hpp"
#include "ck/tensor_operation/gpu/device/tensor_layout.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
#include <unordered_map>

#include <ATen/ATen.h>
#if !defined(USE_ROCM)
#include <c10/cuda/CUDAStream.h>
#endif
#include <torch/torch.h>

#if defined(USE_ROCM)

#include <c10/hip/HIPStream.h>
#include "kernels/fp8_rowwise_kernel_manifest.h"

namespace fbgemm_gpu {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
#include <numeric>

#include <ATen/ATen.h>
#if !defined(USE_ROCM)
#include <c10/cuda/CUDAStream.h>
#endif
#include <torch/torch.h>

#if defined(USE_ROCM)

#include <c10/hip/HIPStream.h>
#include "ck/ck.hpp"
#include "ck/tensor_operation/gpu/device/gemm_specialization.hpp"
#include "ck/tensor_operation/gpu/device/tensor_layout.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
#include <numeric>

#include <ATen/ATen.h>
#if !defined(USE_ROCM)
#include <c10/cuda/CUDAStream.h>
#endif
#include <torch/torch.h>

#if defined(USE_ROCM)
#include <c10/hip/HIPStream.h>

#include "ck/ck.hpp"
#include "ck/tensor_operation/gpu/device/gemm_specialization.hpp"
Expand Down

0 comments on commit 863f596

Please sign in to comment.