summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clblast.h5
-rw-r--r--include/clblast_c.h11
-rw-r--r--src/clblast_c.cpp6
3 files changed, 10 insertions, 12 deletions
diff --git a/include/clblast.h b/include/clblast.h
index d9637d15..9fdd5df1 100644
--- a/include/clblast.h
+++ b/include/clblast.h
@@ -621,9 +621,8 @@ StatusCode PUBLIC_API FillCache(const cl_device_id device);
// =================================================================================================
-// Overrides tuning parameters for a specific device-precision-routine combination. The next time
-// (and all further times) the target routine is called it will re-compile and use the new
-// parameters.
+// Overrides tuning parameters for a specific device-precision-kernel combination. The next time
+// the target routine is called it will re-compile and use the new parameters from then on.
StatusCode PUBLIC_API OverrideParameters(const cl_device_id device, const std::string &kernel_name,
const Precision precision,
const std::unordered_map<std::string,size_t> &parameters);
diff --git a/include/clblast_c.h b/include/clblast_c.h
index cd657f3b..d4b0b004 100644
--- a/include/clblast_c.h
+++ b/include/clblast_c.h
@@ -1345,12 +1345,11 @@ CLBlastStatusCode PUBLIC_API CLBlastFillCache(const cl_device_id device);
// =================================================================================================
-// Overrides tuning parameters for a specific device-precision-routine combination. The next time
-// (and all further times) the target routine is called it will re-compile and use the new
-// parameters.
-CLBlastStatusCode PUBLIC_API OverrideParameters(const cl_device_id device, const char* kernel_name,
- const CLBlastPrecision precision, const size_t num_parameters,
- const char** parameters_names, const size_t* parameters_values);
+// Overrides tuning parameters for a specific device-precision-kernel combination. The next time
+// the target routine is called it will re-compile and use the new parameters from then on.
+CLBlastStatusCode PUBLIC_API CLBlastOverrideParameters(const cl_device_id device, const char* kernel_name,
+ const CLBlastPrecision precision, const size_t num_parameters,
+ const char** parameters_names, const size_t* parameters_values);
// =================================================================================================
diff --git a/src/clblast_c.cpp b/src/clblast_c.cpp
index 79b6a640..de431fa4 100644
--- a/src/clblast_c.cpp
+++ b/src/clblast_c.cpp
@@ -3487,9 +3487,9 @@ CLBlastStatusCode CLBlastFillCache(const cl_device_id device) {
// =================================================================================================
// Overrides the tuning parameters for this device-precision-kernel combination
-CLBlastStatusCode PUBLIC_API OverrideParameters(const cl_device_id device, const char* kernel_name,
- const CLBlastPrecision precision, const size_t num_parameters,
- const char** parameters_names, const size_t* parameters_values) {
+CLBlastStatusCode PUBLIC_API CLBlastOverrideParameters(const cl_device_id device, const char* kernel_name,
+ const CLBlastPrecision precision, const size_t num_parameters,
+ const char** parameters_names, const size_t* parameters_values) {
try {
const auto kernel_name_cpp = std::string(kernel_name);
const auto precision_cpp = static_cast<clblast::Precision>(precision);