"vscode:/vscode.git/clone" did not exist on "7d648418b8b1aadb90489ef18cff1763ffc82ed5"
Commit 9815d228 authored by wenjh's avatar wenjh
Browse files

Merge branch 'develop_v2.3' into 'main'

[HIPIFY] Add rules for hipify

See merge request dcutoolkit/deeplearing/TransformerEngine!6
parents 464ca762 1312aa6e
{ {
"custom_map" : { "custom_map" : {
"common/util/cuda_runtime.h": "common/util/hip_runtime.h",
"../util/cuda_runtime.h": "../util/hip_runtime.h",
"common/util/cuda_driver.h": "common/util/hip_driver.h",
"../util/cuda_driver.h": "../util/hip_driver.h",
"common/util/cuda_nvml.h": "common/util/hip_nvml.h",
"common/utils.cuh" : "common/utils_hip.cuh", "common/utils.cuh" : "common/utils_hip.cuh",
"common/transpose/cast_transpose.h" : "common/transpose/cast_transpose_hip.h", "common/transpose/cast_transpose.h" : "common/transpose/cast_transpose_hip.h",
"common/recipe/recipe_common.cuh" : "common/recipe/recipe_common_hip.cuh", "common/recipe/recipe_common.cuh" : "common/recipe/recipe_common_hip.cuh",
......
...@@ -12,13 +12,8 @@ ...@@ -12,13 +12,8 @@
#include <numeric> #include <numeric>
#include "common/common.h" #include "common/common.h"
#ifdef USE_ROCM
#include "common/util/hip_driver.h"
#include "common/util/hip_runtime.h"
#else
#include "common/util/cuda_driver.h" #include "common/util/cuda_driver.h"
#include "common/util/cuda_runtime.h" #include "common/util/cuda_runtime.h"
#endif
#include "common/util/logging.h" #include "common/util/logging.h"
#include "common/util/system.h" #include "common/util/system.h"
#include "userbuffers/userbuffers.h" #include "userbuffers/userbuffers.h"
......
...@@ -19,15 +19,9 @@ ...@@ -19,15 +19,9 @@
#include <map> #include <map>
#include <utility> #include <utility>
#ifdef USE_ROCM
#include "common/util/hip_driver.h"
#include "common/util/hip_nvml.h"
#include "common/util/hip_runtime.h"
#else
#include "common/util/cuda_driver.h" #include "common/util/cuda_driver.h"
#include "common/util/cuda_nvml.h" #include "common/util/cuda_nvml.h"
#include "common/util/cuda_runtime.h" #include "common/util/cuda_runtime.h"
#endif
#include "common/util/logging.h" #include "common/util/logging.h"
#include "common/util/system.h" #include "common/util/system.h"
#include "ipcsocket.h" #include "ipcsocket.h"
......
...@@ -10,11 +10,7 @@ ...@@ -10,11 +10,7 @@
#include "./common.h" #include "./common.h"
#include "./utils.cuh" #include "./utils.cuh"
#ifdef __HIP_PLATFORM_AMD__
#include "common/util/hip_runtime.h"
#else
#include "common/util/cuda_runtime.h" #include "common/util/cuda_runtime.h"
#endif
#include "common/util/logging.h" #include "common/util/logging.h"
namespace transformer_engine { namespace transformer_engine {
......
...@@ -22,11 +22,7 @@ ...@@ -22,11 +22,7 @@
#include "../common.h" #include "../common.h"
#include "../util/handle_manager.h" #include "../util/handle_manager.h"
#include "../util/logging.h" #include "../util/logging.h"
#ifdef __HIP_PLATFORM_AMD__
#include "common/util/hip_runtime.h"
#else
#include "common/util/cuda_runtime.h" #include "common/util/cuda_runtime.h"
#endif
#ifndef __HIP_PLATFORM_AMD__ #ifndef __HIP_PLATFORM_AMD__
namespace { namespace {
......
...@@ -11,11 +11,7 @@ ...@@ -11,11 +11,7 @@
#include <string> #include <string>
#include "../common.h" #include "../common.h"
#ifdef __HIP_PLATFORM_AMD__
#include "../util/hip_runtime.h"
#else
#include "../util/cuda_runtime.h" #include "../util/cuda_runtime.h"
#endif
#include "../util/logging.h" #include "../util/logging.h"
namespace transformer_engine { namespace transformer_engine {
......
...@@ -7,11 +7,7 @@ ...@@ -7,11 +7,7 @@
#include <filesystem> #include <filesystem>
#include "../common.h" #include "../common.h"
#ifdef USE_ROCM
#include "../util/hip_runtime.h"
#else
#include "../util/cuda_runtime.h" #include "../util/cuda_runtime.h"
#endif
namespace transformer_engine { namespace transformer_engine {
......
...@@ -10,15 +10,9 @@ ...@@ -10,15 +10,9 @@
#include <mutex> #include <mutex>
#include "../common.h" #include "../common.h"
#ifdef USE_ROCM
#include "../util/hip_driver.h"
#include "../util/system.h"
#include "common/util/hip_runtime.h"
#else
#include "../util/cuda_driver.h" #include "../util/cuda_driver.h"
#include "../util/system.h" #include "../util/system.h"
#include "common/util/cuda_runtime.h" #include "common/util/cuda_runtime.h"
#endif
namespace transformer_engine { namespace transformer_engine {
......
...@@ -19,13 +19,8 @@ ...@@ -19,13 +19,8 @@
#include <vector> #include <vector>
#include "../common.h" #include "../common.h"
#ifdef __HIP_PLATFORM_AMD__
#include "../util/hip_driver.h"
#include "../util/hip_runtime.h"
#else
#include "../util/cuda_driver.h" #include "../util/cuda_driver.h"
#include "../util/cuda_runtime.h" #include "../util/cuda_runtime.h"
#endif
namespace transformer_engine { namespace transformer_engine {
......
...@@ -12,11 +12,7 @@ ...@@ -12,11 +12,7 @@
#include "../common.h" #include "../common.h"
#include "common.h" #include "common.h"
#ifdef USE_ROCM
#include "common/util/hip_runtime.h"
#else
#include "common/util/cuda_runtime.h" #include "common/util/cuda_runtime.h"
#endif
#include "common/util/system.h" #include "common/util/system.h"
#include "extensions.h" #include "extensions.h"
#include "pybind.h" #include "pybind.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment