Fixed the naming of the C API of OverrideParameters and fixed the description
parent
3d10690c83
commit
d6538dfc25
|
@ -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> ¶meters);
|
||||
|
|
|
@ -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);
|
||||
|
||||
// =================================================================================================
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue