Skip to content

Commit

Permalink
resolve ambiguous symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
upsj committed Jul 20, 2023
1 parent 54ccdaf commit 33e29c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions cuda/base/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ namespace gko {
#include "common/cuda_hip/base/executor.hpp.inc"


std::unique_ptr<CudaAllocatorBase> allocator_from_mode(int device_id,
allocation_mode mode)
std::unique_ptr<CudaAllocatorBase> cuda_allocator_from_mode(
int device_id, allocation_mode mode)
{
switch (mode) {
case allocation_mode::device:
Expand All @@ -82,8 +82,8 @@ std::shared_ptr<CudaExecutor> CudaExecutor::create(
int device_id, std::shared_ptr<Executor> master, bool device_reset,
allocation_mode alloc_mode, cudaStream_t stream)
{
return create(device_id, master, allocator_from_mode(device_id, alloc_mode),
stream);
return create(device_id, master,
cuda_allocator_from_mode(device_id, alloc_mode), stream);
}


Expand Down
6 changes: 3 additions & 3 deletions hip/base/executor.hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ namespace gko {
#include "common/cuda_hip/base/executor.hpp.inc"


std::unique_ptr<HipAllocatorBase> allocator_from_mode(int device_id,
allocation_mode mode)
std::unique_ptr<HipAllocatorBase> hip_allocator_from_mode(int device_id,
allocation_mode mode)
{
switch (mode) {
case allocation_mode::device:
Expand All @@ -79,7 +79,7 @@ std::shared_ptr<HipExecutor> HipExecutor::create(
allocation_mode alloc_mode, hipStream_t stream)
{
return create(device_id, std::move(master),
allocator_from_mode(device_id, alloc_mode), stream);
hip_allocator_from_mode(device_id, alloc_mode), stream);
}


Expand Down

0 comments on commit 33e29c3

Please sign in to comment.