Skip to content

Commit

Permalink
Remove duplicates in OpenCL function list
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed May 10, 2023
1 parent 1175657 commit f81c8fa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions loopy/target/opencl.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,10 +421,12 @@ def get_opencl_callables():
*identifier* is known in OpenCL.
"""
opencl_function_ids = (
{"max", "min", "dot", "pow", "abs", "acos", "asin",
"atan", "cos", "cosh", "sin", "sinh", "pow", "atan2", "tanh", "exp",
"log", "log10", "sqrt", "ceil", "floor", "max", "min", "fmax", "fmin",
"fabs", "tan", "erf", "erfc"}
{"dot", "abs",
"cos", "cosh", "sin", "sinh", "tan", "tanh",
"acos", "acosh", "asin", "asinh", "atan", "atanh", "atan2",
"pow", "exp", "log", "log10", "sqrt", "ceil", "floor",
"max", "min", "fmax", "fmin",
"fabs", "erf", "erfc"}
| set(_CL_SIMPLE_MULTI_ARG_FUNCTIONS)
| set(VECTOR_LITERAL_FUNCS))

Expand Down

0 comments on commit f81c8fa

Please sign in to comment.