Skip to content

Commit f603e23

Browse files
committed
Fix not setting it up w/o libc
1 parent a2b1fd7 commit f603e23

File tree

4 files changed

+2
-17
lines changed

4 files changed

+2
-17
lines changed

offload/plugins-nextgen/amdgpu/src/rtl.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,9 +2148,7 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
21482148

21492149
/// We want to set up the RPC server for host services to the GPU if it is
21502150
/// availible.
2151-
bool shouldSetupRPCServer() const override {
2152-
return libomptargetSupportsRPC();
2153-
}
2151+
bool shouldSetupRPCServer() const override { return true; }
21542152

21552153
/// The RPC interface should have enough space for all availible parallelism.
21562154
uint64_t requestedRPCPortCount() const override {

offload/plugins-nextgen/common/include/PluginInterface.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,9 +1580,6 @@ template <typename ResourceRef> class GenericDeviceResourceManagerTy {
15801580
std::deque<ResourceRef> ResourcePool;
15811581
};
15821582

1583-
/// A static check on whether or not we support RPC in libomptarget.
1584-
bool libomptargetSupportsRPC();
1585-
15861583
} // namespace plugin
15871584
} // namespace target
15881585
} // namespace omp

offload/plugins-nextgen/common/src/PluginInterface.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2179,11 +2179,3 @@ int32_t GenericPluginTy::get_function(__tgt_device_binary Binary,
21792179
*KernelPtr = &Kernel;
21802180
return OFFLOAD_SUCCESS;
21812181
}
2182-
2183-
bool llvm::omp::target::plugin::libomptargetSupportsRPC() {
2184-
#ifdef LIBOMPTARGET_RPC_SUPPORT
2185-
return true;
2186-
#else
2187-
return false;
2188-
#endif
2189-
}

offload/plugins-nextgen/cuda/src/rtl.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,9 +496,7 @@ struct CUDADeviceTy : public GenericDeviceTy {
496496

497497
/// We want to set up the RPC server for host services to the GPU if it is
498498
/// availible.
499-
bool shouldSetupRPCServer() const override {
500-
return libomptargetSupportsRPC();
501-
}
499+
bool shouldSetupRPCServer() const override { return true; }
502500

503501
/// The RPC interface should have enough space for all availible parallelism.
504502
uint64_t requestedRPCPortCount() const override {

0 commit comments

Comments
 (0)