Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Oneflow
Commits
3f56062c
Commit
3f56062c
authored
Nov 14, 2022
by
yuguo
Browse files
some ep/cuda -> ep/rocm
parent
e96d67a2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
2 deletions
+19
-2
oneflow/core/device/cuda_util.cpp
oneflow/core/device/cuda_util.cpp
+4
-0
oneflow/core/eager/op_call_instruction_type.cpp
oneflow/core/eager/op_call_instruction_type.cpp
+4
-0
oneflow/core/kernel/random_generator.hip.cpp
oneflow/core/kernel/random_generator.hip.cpp
+2
-1
oneflow/core/vm/ep_device_context.h
oneflow/core/vm/ep_device_context.h
+4
-0
oneflow/user/kernels/diagonal_kernel.cpp
oneflow/user/kernels/diagonal_kernel.cpp
+4
-0
oneflow/user/kernels/diagonal_kernel.hip.cpp
oneflow/user/kernels/diagonal_kernel.hip.cpp
+1
-1
No files found.
oneflow/core/device/cuda_util.cpp
View file @
3f56062c
...
...
@@ -23,7 +23,11 @@ limitations under the License.
#include "oneflow/core/job/lazy_mode.h"
#include "oneflow/core/platform/include/pthread_fork.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"
#endif
#include "oneflow/core/vm/vm_util.h"
#ifdef WITH_CUDA
...
...
oneflow/core/eager/op_call_instruction_type.cpp
View file @
3f56062c
...
...
@@ -16,7 +16,11 @@ limitations under the License.
#include "oneflow/core/common/device_type.pb.h"
#include "oneflow/core/common/util.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"
#endif
#include "oneflow/core/job/job_desc.h"
#include "oneflow/core/job/parallel_desc.h"
#include "oneflow/core/operator/operator.h"
...
...
oneflow/core/kernel/random_generator.hip.cpp
View file @
3f56062c
...
...
@@ -14,7 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
#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
{
...
...
oneflow/core/vm/ep_device_context.h
View file @
3f56062c
...
...
@@ -26,7 +26,11 @@ limitations under the License.
#include "oneflow/core/ep/include/device.h"
#include "oneflow/core/common/cpp_attribute.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"
#endif
#include "oneflow/core/framework/device.h"
namespace
oneflow
{
...
...
oneflow/user/kernels/diagonal_kernel.cpp
View file @
3f56062c
...
...
@@ -18,7 +18,11 @@ limitations under the License.
#include "oneflow/core/framework/framework.h"
#include "oneflow/core/kernel/new_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"
#endif
namespace
oneflow
{
namespace
{
...
...
oneflow/user/kernels/diagonal_kernel.hip.cpp
View file @
3f56062c
...
...
@@ -18,7 +18,7 @@ limitations under the License.
#include "oneflow/core/framework/framework.h"
#include "oneflow/core/kernel/new_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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment