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
1 merge request!438Reduction Support
Pipeline #73447 skipped
......@@ -16,7 +16,7 @@ from ..kernelcreation import (
)
from ..kernelcreation.context import KernelCreationContext
from ..ast.structural import PsBlock, PsConditional, PsDeclaration
from ..ast.structural import PsBlock, PsConditional, PsDeclaration, PsStatement
from ..ast.expressions import (
PsExpression,
PsLiteralExpr,
......@@ -170,7 +170,7 @@ class CudaPlatform(GenericGpu):
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")
return call
return PsStatement(call)
# Internals
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment