[NFC] math_brute_force: remove unused MakeKernel function (#1714)

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
Sven van Haastregt
2023-05-04 16:18:35 +01:00
committed by GitHub
parent caa656c268
commit 20afedbd4a
2 changed files with 0 additions and 31 deletions

View File

@@ -1026,34 +1026,6 @@ int IsTininessDetectedBeforeRounding(void)
return 0;
}
int MakeKernel(const char **c, cl_uint count, const char *name, cl_kernel *k,
cl_program *p, bool relaxedMode)
{
int error = 0;
char options[200] = "";
if (gForceFTZ)
{
strcat(options, " -cl-denorms-are-zero");
}
if (relaxedMode)
{
strcat(options, " -cl-fast-relaxed-math");
}
error =
create_single_kernel_helper(gContext, p, k, count, c, name, options);
if (error != CL_SUCCESS)
{
vlog_error("\t\tFAILED -- Failed to create kernel. (%d)\n", error);
return error;
}
return error;
}
static int IsInRTZMode(void)
{
int error;

View File

@@ -82,9 +82,6 @@ float Abs_Error(float test, double reference);
float Ulp_Error(float test, double reference);
float Bruteforce_Ulp_Error_Double(double test, long double reference);
int MakeKernel(const char **c, cl_uint count, const char *name, cl_kernel *k,
cl_program *p, bool relaxedMode);
// used to convert a bucket of bits into a search pattern through double
inline double DoubleFromUInt32(uint32_t bits)
{