Skip to content

Commit 5ab4152

Browse files
authored
add fma to native builtins for AMD (#764)
1 parent f0b5032 commit 5ab4152

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

src/device_properties.cpp

+14-11
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,20 @@ struct cvk_device_properties_amd : public cvk_device_properties {
133133
cl_uint get_max_cmd_group_size() const override final { return 1; }
134134
const std::set<std::string> get_native_builtins() const override final {
135135
return std::set<std::string>({
136-
"ceil", "copysign", "exp2", "fdim",
137-
"floor", "fmax", "fmin", "frexp",
138-
"half_exp", "half_exp10", "half_exp2", "half_log",
139-
"half_log10", "half_log2", "half_powr", "half_rsqrt",
140-
"half_sqrt", "isequal", "isfinite", "isgreater",
141-
"isgreaterequal", "isinf", "isless", "islessequal",
142-
"islessgreater", "isnan", "isnormal", "isnotequal",
143-
"isordered", "isunordered", "ldexp", "log",
144-
"log10", "log2", "mad", "rint",
145-
"round", "rsqrt", "signbit", "sqrt",
146-
"trunc",
136+
"ceil", "copysign", "exp2",
137+
"fdim", "floor", "fma",
138+
"fmax", "fmin", "frexp",
139+
"half_exp", "half_exp10", "half_exp2",
140+
"half_log", "half_log10", "half_log2",
141+
"half_powr", "half_rsqrt", "half_sqrt",
142+
"isequal", "isfinite", "isgreater",
143+
"isgreaterequal", "isinf", "isless",
144+
"islessequal", "islessgreater", "isnan",
145+
"isnormal", "isnotequal", "isordered",
146+
"isunordered", "ldexp", "log",
147+
"log10", "log2", "mad",
148+
"rint", "round", "rsqrt",
149+
"signbit", "sqrt", "trunc",
147150
});
148151
}
149152
std::string get_compile_options() const override final {

0 commit comments

Comments
 (0)