Commit 3f56062c authored by yuguo's avatar yuguo
Browse files

some ep/cuda -> ep/rocm

parent e96d67a2
...@@ -23,7 +23,11 @@ limitations under the License. ...@@ -23,7 +23,11 @@ limitations under the License.
#include "oneflow/core/job/lazy_mode.h" #include "oneflow/core/job/lazy_mode.h"
#include "oneflow/core/platform/include/pthread_fork.h" #include "oneflow/core/platform/include/pthread_fork.h"
#include "oneflow/core/device/device_context.h" #include "oneflow/core/device/device_context.h"
#ifdef WITH_ROCM
#include "oneflow/core/ep/rocm/cuda_stream.h"
#else
#include "oneflow/core/ep/cuda/cuda_stream.h" #include "oneflow/core/ep/cuda/cuda_stream.h"
#endif
#include "oneflow/core/vm/vm_util.h" #include "oneflow/core/vm/vm_util.h"
#ifdef WITH_CUDA #ifdef WITH_CUDA
......
...@@ -16,7 +16,11 @@ limitations under the License. ...@@ -16,7 +16,11 @@ limitations under the License.
#include "oneflow/core/common/device_type.pb.h" #include "oneflow/core/common/device_type.pb.h"
#include "oneflow/core/common/util.h" #include "oneflow/core/common/util.h"
#include "oneflow/core/common/protobuf.h" #include "oneflow/core/common/protobuf.h"
#ifdef WITH_ROCM
#include "oneflow/core/ep/rocm/cuda_stream.h"
#else
#include "oneflow/core/ep/cuda/cuda_stream.h" #include "oneflow/core/ep/cuda/cuda_stream.h"
#endif
#include "oneflow/core/job/job_desc.h" #include "oneflow/core/job/job_desc.h"
#include "oneflow/core/job/parallel_desc.h" #include "oneflow/core/job/parallel_desc.h"
#include "oneflow/core/operator/operator.h" #include "oneflow/core/operator/operator.h"
......
...@@ -14,7 +14,8 @@ See the License for the specific language governing permissions and ...@@ -14,7 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
#include "oneflow/core/kernel/random_generator.h" #include "oneflow/core/kernel/random_generator.h"
#include "oneflow/core/ep/cuda/cuda_stream.h" #include "oneflow/core/ep/rocm/cuda_stream.h"
namespace oneflow { namespace oneflow {
......
...@@ -26,7 +26,11 @@ limitations under the License. ...@@ -26,7 +26,11 @@ limitations under the License.
#include "oneflow/core/ep/include/device.h" #include "oneflow/core/ep/include/device.h"
#include "oneflow/core/common/cpp_attribute.h" #include "oneflow/core/common/cpp_attribute.h"
#include "oneflow/core/ep/include/device_manager_registry.h" #include "oneflow/core/ep/include/device_manager_registry.h"
#ifdef WITH_ROCM
#include "oneflow/core/ep/rocm/cuda_stream.h"
#else
#include "oneflow/core/ep/cuda/cuda_stream.h" #include "oneflow/core/ep/cuda/cuda_stream.h"
#endif
#include "oneflow/core/framework/device.h" #include "oneflow/core/framework/device.h"
namespace oneflow { namespace oneflow {
......
...@@ -18,7 +18,11 @@ limitations under the License. ...@@ -18,7 +18,11 @@ limitations under the License.
#include "oneflow/core/framework/framework.h" #include "oneflow/core/framework/framework.h"
#include "oneflow/core/kernel/new_kernel_util.h" #include "oneflow/core/kernel/new_kernel_util.h"
#include "oneflow/core/kernel/kernel_util.h" #include "oneflow/core/kernel/kernel_util.h"
#ifdef WITH_ROCM
#include "oneflow/core/ep/rocm/cuda_stream.h"
#else
#include "oneflow/core/ep/cuda/cuda_stream.h" #include "oneflow/core/ep/cuda/cuda_stream.h"
#endif
namespace oneflow { namespace oneflow {
namespace { namespace {
......
...@@ -18,7 +18,7 @@ limitations under the License. ...@@ -18,7 +18,7 @@ limitations under the License.
#include "oneflow/core/framework/framework.h" #include "oneflow/core/framework/framework.h"
#include "oneflow/core/kernel/new_kernel_util.h" #include "oneflow/core/kernel/new_kernel_util.h"
#include "oneflow/core/kernel/kernel_util.h" #include "oneflow/core/kernel/kernel_util.h"
#include "oneflow/core/ep/cuda/cuda_stream.h" #include "oneflow/core/ep/rocm/cuda_stream.h"
namespace oneflow { namespace oneflow {
namespace { namespace {
......
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