Skip to content
Snippets Groups Projects
Commit ebeac660 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Mark atomics unvectorizable

parent 8c673827
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,9 @@ def generate_expr_instruction_code(kernel, insn, codegen_state):
from loopy.expression import dtype_to_type_context, VectorizabilityChecker
if codegen_state.vectorization_info:
if insn.atomicity:
raise Unvectorizable("atomic operation")
vinfo = codegen_state.vectorization_info
vcheck = VectorizabilityChecker(
kernel, vinfo.iname, vinfo.length)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment