mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
removed vpu bench interface
This commit is contained in:
@@ -23,10 +23,6 @@ struct Session_client : Genode::Rpc_client<Session>
|
|||||||
call<Rpc_register_vm>(size, ram_cap);
|
call<Rpc_register_vm>(size, ram_cap);
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_vgpu_bench(unsigned long i) override
|
|
||||||
{
|
|
||||||
call<Rpc_print_vgpu_bench>(i);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ struct Session : Genode::Session
|
|||||||
|
|
||||||
virtual void register_vm(Genode::size_t size, Genode::Ram_dataspace_capability& ram_cap) = 0;
|
virtual void register_vm(Genode::size_t size, Genode::Ram_dataspace_capability& ram_cap) = 0;
|
||||||
virtual void start_task(unsigned long kconf) = 0;
|
virtual void start_task(unsigned long kconf) = 0;
|
||||||
virtual void print_vgpu_bench(unsigned long i) = 0;
|
|
||||||
|
|
||||||
/*******************
|
/*******************
|
||||||
** RPC interface **
|
** RPC interface **
|
||||||
@@ -22,10 +21,9 @@ struct Session : Genode::Session
|
|||||||
|
|
||||||
GENODE_RPC(Rpc_register_vm, void, register_vm, Genode::size_t, Genode::Ram_dataspace_capability&);
|
GENODE_RPC(Rpc_register_vm, void, register_vm, Genode::size_t, Genode::Ram_dataspace_capability&);
|
||||||
GENODE_RPC(Rpc_start_task, void, start_task, unsigned long);
|
GENODE_RPC(Rpc_start_task, void, start_task, unsigned long);
|
||||||
GENODE_RPC(Rpc_print_vgpu_bench, void, print_vgpu_bench, unsigned long);
|
|
||||||
|
|
||||||
|
|
||||||
GENODE_RPC_INTERFACE(Rpc_register_vm, Rpc_start_task, Rpc_print_vgpu_bench);
|
GENODE_RPC_INTERFACE(Rpc_register_vm, Rpc_start_task);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,11 +18,6 @@ extern gpgpu_virt::GPGPUScheduler* _global_sched;
|
|||||||
|
|
||||||
namespace gpgpu_virt {
|
namespace gpgpu_virt {
|
||||||
|
|
||||||
void Session_component::print_vgpu_bench(unsigned long i)
|
|
||||||
{
|
|
||||||
vgpu.print_vgpu_bench(i);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Session_component::register_vm(Genode::size_t size, Genode::Ram_dataspace_capability& ram_cap_vm)
|
void Session_component::register_vm(Genode::size_t size, Genode::Ram_dataspace_capability& ram_cap_vm)
|
||||||
{
|
{
|
||||||
// create shared mem
|
// create shared mem
|
||||||
@@ -107,16 +102,11 @@ Session_component::~Session_component()
|
|||||||
_global_gpgpu_genode->freeRamCap(ram_cap);
|
_global_gpgpu_genode->freeRamCap(ram_cap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Session_component* Root_component::_create_session(const char *)
|
Session_component* Root_component::_create_session(const char *)
|
||||||
{
|
{
|
||||||
return new (md_alloc()) Session_component();
|
return new (md_alloc()) Session_component();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Root_component::Root_component(Genode::Entrypoint &ep,
|
Root_component::Root_component(Genode::Entrypoint &ep,
|
||||||
Genode::Allocator &alloc)
|
Genode::Allocator &alloc)
|
||||||
:
|
:
|
||||||
|
|||||||
@@ -25,8 +25,6 @@ struct Session_component : Genode::Rpc_object<Session>
|
|||||||
|
|
||||||
void start_task(unsigned long kconf) override;
|
void start_task(unsigned long kconf) override;
|
||||||
|
|
||||||
void print_vgpu_bench(unsigned long i) override;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class Root_component
|
class Root_component
|
||||||
|
|||||||
@@ -106,15 +106,6 @@ namespace gpgpu_virt {
|
|||||||
Kernel* take_kernel() {
|
Kernel* take_kernel() {
|
||||||
return (Kernel*)ready_list.dequeue();
|
return (Kernel*)ready_list.dequeue();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Print bench
|
|
||||||
*/
|
|
||||||
void print_vgpu_bench(unsigned long i)
|
|
||||||
{
|
|
||||||
Genode::log("bench result of vgpu ", i);
|
|
||||||
GPGPU_Driver::getInstance().printBenchResults();
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,8 +55,3 @@ void cl_genode::wait(struct kernel_config* kconf)
|
|||||||
asm("nop");
|
asm("nop");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void cl_genode::print_vgpu_bench(unsigned long i)
|
|
||||||
{
|
|
||||||
backend_driver.print_vgpu_bench(i);
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -100,11 +100,6 @@ public:
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void reset() { allocator.reset(); }
|
void reset() { allocator.reset(); }
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief print bench results */
|
|
||||||
void print_vgpu_bench(unsigned long i);
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CL_GENODE_H
|
#endif // CL_GENODE_H
|
||||||
|
|||||||
Reference in New Issue
Block a user