mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
[NFC] math_brute_force: remove unused MakeKernel function (#1714)
Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
caa656c268
commit
20afedbd4a
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user