Skip to content
Snippets Groups Projects

Reduction Support

Merged Richard Angersbach requested to merge rangersbach/reductions into v2.0-dev
Compare and Show latest version
1 file
+ 2
1
Preferences
Compare changes
@@ -85,7 +85,8 @@ class CudaPlatform(GenericGpu):
@@ -85,7 +85,8 @@ class CudaPlatform(GenericGpu):
arg_types = (dtype,) * func.num_args
arg_types = (dtype,) * func.num_args
if isinstance(dtype, PsScalarType) and func in (NumericLimitsFunctions.Min, NumericLimitsFunctions.Max):
if isinstance(dtype, PsScalarType) and func in (NumericLimitsFunctions.Min, NumericLimitsFunctions.Max):
return PsLiteralExpr(PsLiteral(f"::cuda::std::numeric_limits<{dtype.c_string()}>::{func.function_name}()", dtype))
return PsLiteralExpr(
 
PsLiteral(f"::cuda::std::numeric_limits<{dtype.c_string()}>::{func.function_name}()", dtype))
if isinstance(dtype, PsIeeeFloatType):
if isinstance(dtype, PsIeeeFloatType):
match func:
match func: