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

Fix typecheck

parent e15d3cf7
No related branches found
No related tags found
1 merge request!438Reduction Support
Pipeline #73150 passed
......@@ -156,7 +156,7 @@ class CudaPlatform(GenericGpu):
assert isinstance(symbol_expr, PsSymbolExpr) and isinstance(symbol_expr.dtype, PsScalarType)
call.function = CFunction(f"atomic{op.name}", [ptr_expr.dtype, symbol_expr.dtype], PsCustomType("void"))
call.args = [ptr_expr, symbol_expr]
call.args = (ptr_expr, symbol_expr)
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")
......
......@@ -112,7 +112,9 @@ class SyclPlatform(GenericGpu):
def unfold_function(
self, call: PsCall
) -> PsAstNode:
pass
raise MaterializationError(
f"No implementation available for function {call.function.name}"
)
def _prepend_dense_translation(
self, body: PsBlock, ispace: FullIterationSpace
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment