Commit ce0508d2 authored by Matthieu Dorier's avatar Matthieu Dorier

removed some functions that disappeared from the bake interface

parent 800b9ccf
...@@ -57,15 +57,15 @@ class BakeProvider(pymargo.Provider): ...@@ -57,15 +57,15 @@ class BakeProvider(pymargo.Provider):
else: else:
return [ BakeTargetID(tid) for tid in l ] return [ BakeTargetID(tid) for tid in l ]
def set_target_xfer_buffer(self, target, count, size): # def set_target_xfer_buffer(self, target, count, size):
""" # """
Sets the number and size of intermediate buffers that can be used to # Sets the number and size of intermediate buffers that can be used to
execute transfers to a specific target. # execute transfers to a specific target.
""" # """
_pybakeserver.set_target_xfer_buffer(self._provider, target._tid, count, size) # _pybakeserver.set_target_xfer_buffer(self._provider, target._tid, count, size)
def set_target_xfer_concurrency(self, target, num_threads): # def set_target_xfer_concurrency(self, target, num_threads):
""" # """
Sets the number of ULTs that can be used to execute transfers concurrently. # Sets the number of ULTs that can be used to execute transfers concurrently.
""" # """
_pybakeserver.set_target_xfer_concurrency(self._provider, target._tid, num_threads) # _pybakeserver.set_target_xfer_concurrency(self._provider, target._tid, num_threads)
...@@ -93,6 +93,7 @@ static void pybake_make_pool(const std::string& pool_name, ...@@ -93,6 +93,7 @@ static void pybake_make_pool(const std::string& pool_name,
HANDLE_ERROR(bake_makepool, ret); HANDLE_ERROR(bake_makepool, ret);
} }
#if 0
static void pybake_provider_set_target_xfer_buffer( static void pybake_provider_set_target_xfer_buffer(
pybake_provider_t provider, pybake_provider_t provider,
bake_target_id_t target_id, bake_target_id_t target_id,
...@@ -109,6 +110,7 @@ static void pybake_provider_set_target_xfer_concurrency( ...@@ -109,6 +110,7 @@ static void pybake_provider_set_target_xfer_concurrency(
int ret = bake_provider_set_target_xfer_concurrency(provider, target_id, num_threads); int ret = bake_provider_set_target_xfer_concurrency(provider, target_id, num_threads);
HANDLE_ERROR(bake_provider_set_target_xfer_concurrency, ret); HANDLE_ERROR(bake_provider_set_target_xfer_concurrency, ret);
} }
#endif
PYBIND11_MODULE(_pybakeserver, m) PYBIND11_MODULE(_pybakeserver, m)
{ {
...@@ -120,6 +122,8 @@ PYBIND11_MODULE(_pybakeserver, m) ...@@ -120,6 +122,8 @@ PYBIND11_MODULE(_pybakeserver, m)
m.def("count_storage_targets", &pybake_provider_count_storage_targets); m.def("count_storage_targets", &pybake_provider_count_storage_targets);
m.def("list_storage_targets", &pybake_provider_list_storage_targets); m.def("list_storage_targets", &pybake_provider_list_storage_targets);
m.def("make_pool", &pybake_make_pool); m.def("make_pool", &pybake_make_pool);
#if 0
m.def("set_target_xfer_buffer", &pybake_provider_set_target_xfer_buffer); m.def("set_target_xfer_buffer", &pybake_provider_set_target_xfer_buffer);
m.def("set_target_xfer_concurrency", &pybake_provider_set_target_xfer_concurrency); m.def("set_target_xfer_concurrency", &pybake_provider_set_target_xfer_concurrency);
#endif
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment