Skip to content
Snippets Groups Projects
Commit a2a59d40 authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Wrap statement around generated atomic call [skip ci]

parent d8ae9002
No related branches found
No related tags found
1 merge request!438Reduction Support
Pipeline #73447 skipped
...@@ -16,7 +16,7 @@ from ..kernelcreation import ( ...@@ -16,7 +16,7 @@ from ..kernelcreation import (
) )
from ..kernelcreation.context import KernelCreationContext from ..kernelcreation.context import KernelCreationContext
from ..ast.structural import PsBlock, PsConditional, PsDeclaration from ..ast.structural import PsBlock, PsConditional, PsDeclaration, PsStatement
from ..ast.expressions import ( from ..ast.expressions import (
PsExpression, PsExpression,
PsLiteralExpr, PsLiteralExpr,
...@@ -170,7 +170,7 @@ class CudaPlatform(GenericGpu): ...@@ -170,7 +170,7 @@ class CudaPlatform(GenericGpu):
if not isinstance(symbol_expr.dtype, PsIeeeFloatType) or symbol_expr.dtype.width not in (32, 64): if not isinstance(symbol_expr.dtype, PsIeeeFloatType) or symbol_expr.dtype.width not in (32, 64):
NotImplementedError("atomicMul is only available for float32/64 datatypes") NotImplementedError("atomicMul is only available for float32/64 datatypes")
return call return PsStatement(call)
# Internals # Internals
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment