Skip to content

Commit

Permalink
Include GPU data types only for kernel code (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
chhwang authored Apr 25, 2024
1 parent 6c1fa53 commit 89896ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion include/mscclpp/nvls_device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
#define MSCCLPP_NVLS_DEVICE_HPP_

#include <mscclpp/gpu.hpp>
#include <mscclpp/gpu_data_types.hpp>
#include <type_traits>

#if defined(MSCCLPP_DEVICE_CUDA)
#include <mscclpp/gpu_data_types.hpp>
#endif // defined(MSCCLPP_DEVICE_CUDA)

#include "device.hpp"

namespace mscclpp {
Expand Down
3 changes: 2 additions & 1 deletion src/include/execution_kernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
#define MSCCLPP_EXECUTION_KERNEL_HPP_

#include <mscclpp/executor.hpp>
#include <mscclpp/gpu_data_types.hpp>
#include <mscclpp/packet_device.hpp>
#include <mscclpp/proxy_channel.hpp>
#include <mscclpp/sm_channel.hpp>

#include "execution_common.hpp"

#if defined(MSCCLPP_DEVICE_COMPILE)
#include <mscclpp/gpu_data_types.hpp>

#if defined(MSCCLPP_DEVICE_HIP)
#define __synclds() asm volatile("s_waitcnt lgkmcnt(0) \n s_barrier");
#endif // defined(MSCCLPP_DEVICE_HIP)
Expand Down

0 comments on commit 89896ff

Please sign in to comment.