Searched refs:kernelStream (Results 1 – 3 of 3) sorted by relevance
/external/OpenCL-CTS/test_conformance/spirv_new/ |
D | test_op_fmath.cpp | 57 std::stringstream kernelStream; in test_fmath() local 60 kernelStream << "#pragma OPENCL EXTENSION cl_khr_fp64 : enable\n"; in test_fmath() 62 kernelStream << "#pragma OPENCL EXTENSION cl_khr_fp16 : enable\n"; in test_fmath() 65 kernelStream << "#define spirv_fadd(a, b) (a) + (b) \n"; in test_fmath() 66 kernelStream << "#define spirv_fsub(a, b) (a) - (b) \n"; in test_fmath() 67 kernelStream << "#define spirv_fmul(a, b) (a) * (b) \n"; in test_fmath() 68 kernelStream << "#define spirv_fdiv(a, b) (a) / (b) \n"; in test_fmath() 69 kernelStream << "#define spirv_frem(a, b) fmod(a, b) \n"; in test_fmath() 70 kernelStream << "#define spirv_fmod(a, b) copysign(fmod(a,b),b) \n"; in test_fmath() 71 kernelStream << "#define T " << Tname << "\n"; in test_fmath() [all …]
|
D | test_op_vector_times_scalar.cpp | 57 std::stringstream kernelStream; in test_vector_times_scalar() local 60 kernelStream << "#pragma OPENCL EXTENSION cl_khr_fp64 : enable\n"; in test_vector_times_scalar() 62 kernelStream << "#pragma OPENCL EXTENSION cl_khr_fp16 : enable\n"; in test_vector_times_scalar() 65 kernelStream << "#define Ts " << Tname << "\n"; in test_vector_times_scalar() 66 kernelStream << "#define Tv " << Tname << vec_size << "\n"; in test_vector_times_scalar() 67 kernelStream << "__kernel void vector_times_scalar( \n"; in test_vector_times_scalar() 68 kernelStream << " __global Tv *out, \n"; in test_vector_times_scalar() 69 kernelStream << " const __global Tv *lhs,\n"; in test_vector_times_scalar() 70 kernelStream << " const __global Ts *rhs)\n"; in test_vector_times_scalar() 71 kernelStream << "{ \n"; in test_vector_times_scalar() [all …]
|
D | test_cl_khr_spirv_no_integer_wrap_decoration.cpp | 94 std::stringstream kernelStream; in test_ext_cl_khr_spirv_no_integer_wrap_decoration() local 95 kernelStream << "#define spirv_fadd(a, b) (a) + (b) \n"; in test_ext_cl_khr_spirv_no_integer_wrap_decoration() 96 kernelStream << "#define spirv_fsub(a, b) (a) - (b) \n"; in test_ext_cl_khr_spirv_no_integer_wrap_decoration() 97 kernelStream << "#define spirv_fmul(a, b) (a) * (b) \n"; in test_ext_cl_khr_spirv_no_integer_wrap_decoration() 98 kernelStream << "#define spirv_fshiftleft(a, b) (a) << (b) \n"; in test_ext_cl_khr_spirv_no_integer_wrap_decoration() 99 kernelStream << "#define spirv_fnegate(a, b) (-a) \n"; in test_ext_cl_khr_spirv_no_integer_wrap_decoration() 101 kernelStream << "#define T " << Tname << "\n"; in test_ext_cl_khr_spirv_no_integer_wrap_decoration() 102 kernelStream << "#define FUNC spirv_" << funcName << "\n"; in test_ext_cl_khr_spirv_no_integer_wrap_decoration() 103 kernelStream << "__kernel void fmath_cl(__global T *out, \n"; in test_ext_cl_khr_spirv_no_integer_wrap_decoration() 104 kernelStream << "const __global T *lhs, const __global T *rhs) \n"; in test_ext_cl_khr_spirv_no_integer_wrap_decoration() [all …]
|