Skip to content

Commit

Permalink
remove hwloc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelKoch committed Dec 13, 2023
1 parent 062f16f commit b549082
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 325 deletions.
37 changes: 0 additions & 37 deletions core/test/base/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,43 +81,6 @@ TEST(OmpExecutor, IsItsOwnMaster)
}


#if GKO_HAVE_HWLOC


inline int get_os_id(int log_id)
{
return gko::machine_topology::get_instance()->get_core(log_id)->os_id;
}


TEST(MachineTopology, CanBindToASpecificCore)
{
auto cpu_sys = sched_getcpu();

const int bind_core = 3;
gko::machine_topology::get_instance()->bind_to_cores(
std::vector<int>{bind_core});

cpu_sys = sched_getcpu();
ASSERT_EQ(cpu_sys, get_os_id(bind_core));
}


TEST(MachineTopology, CanBindToARangeofCores)
{
auto cpu_sys = sched_getcpu();

const std::vector<int> bind_core = {1, 3};
gko::machine_topology::get_instance()->bind_to_cores(bind_core);

cpu_sys = sched_getcpu();
ASSERT_TRUE(cpu_sys == get_os_id(3) || cpu_sys == get_os_id(1));
}


#endif


TEST(ReferenceExecutor, AllocatesAndFreesMemory)
{
const int num_elems = 10;
Expand Down
141 changes: 0 additions & 141 deletions cuda/test/base/cuda_executor_topology.cu

This file was deleted.

147 changes: 0 additions & 147 deletions hip/test/base/hip_executor_topology.hip.cpp

This file was deleted.

0 comments on commit b549082

Please sign in to comment.