Skip to content

Commit

Permalink
compiler: minor and flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Jun 19, 2024
1 parent d744348 commit 9b3f6a8
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 131 deletions.
12 changes: 12 additions & 0 deletions devito/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
DeviceCustomOmpOperator, DeviceCustomAccOperator)
from devito.operator.registry import operator_registry

# Import XDSL Operators
from devito.xdsl_core.xdsl_cpu import XdslnoopOperator, XdslAdvOperator
from devito.xdsl_core.xdsl_gpu import XdslAdvDeviceOperator

# Register CPU Operators
operator_registry.add(Cpu64CustomOperator, Cpu64, 'custom', 'C')
operator_registry.add(Cpu64CustomOperator, Cpu64, 'custom', 'openmp')
Expand Down Expand Up @@ -54,3 +58,11 @@
operator_registry.add(DeviceFsgOmpOperator, Device, 'advanced-fsg', 'C')
operator_registry.add(DeviceFsgOmpOperator, Device, 'advanced-fsg', 'openmp')
operator_registry.add(DeviceFsgAccOperator, Device, 'advanced-fsg', 'openacc')

# Register XDSL Operators
operator_registry.add(XdslnoopOperator, Cpu64, 'xdsl-noop', 'C')
operator_registry.add(XdslAdvOperator, Cpu64, 'xdsl-noop', 'openmp')

operator_registry.add(XdslAdvOperator, Cpu64, 'xdsl', 'C')
operator_registry.add(XdslAdvOperator, Cpu64, 'xdsl', 'openmp')
operator_registry.add(XdslAdvDeviceOperator, Device, 'xdsl', 'openacc')
Loading

0 comments on commit 9b3f6a8

Please sign in to comment.