From c430559032934ce9234dfad11fea2d60bd37c6ff Mon Sep 17 00:00:00 2001 From: zy69guqi <richard.angersbach@fau.de> Date: Wed, 30 Apr 2025 15:39:06 +0200 Subject: [PATCH] Fix missing resolution of ConstantFunctions on GPU platforms --- src/pystencils/backend/platforms/generic_gpu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pystencils/backend/platforms/generic_gpu.py b/src/pystencils/backend/platforms/generic_gpu.py index b87e6411f..06b230454 100644 --- a/src/pystencils/backend/platforms/generic_gpu.py +++ b/src/pystencils/backend/platforms/generic_gpu.py @@ -313,7 +313,7 @@ class GenericGpu(Platform): arg_types = (dtype,) * call.function.arg_count expr: PsExpression | None = None - if isinstance(dtype, PsIeeeFloatType) and func in MathFunctions: + if isinstance(dtype, PsIeeeFloatType): match func: case ( MathFunctions.Exp -- GitLab