Skip to content

Commit

Permalink
Install enumdecl registry in DpexKernelTargetContext
Browse files Browse the repository at this point in the history
  • Loading branch information
Diptorup Deb committed Oct 12, 2023
1 parent de15cd5 commit 5d90597
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion numba_dpex/core/targets/kernel_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,15 @@ def resolve_argument_type(self, val):

def load_additional_registries(self):
"""Register the OpenCL API and math and other functions."""
from numba.core.typing import cmathdecl, npydecl
from numba.core.typing import cmathdecl, enumdecl, npydecl

from ...ocl import mathdecl, ocldecl

self.install_registry(ocldecl.registry)
self.install_registry(mathdecl.registry)
self.install_registry(cmathdecl.registry)
self.install_registry(npydecl.registry)
self.install_registry(enumdecl.registry)


class SyclDevice(GPU):
Expand Down

0 comments on commit 5d90597

Please sign in to comment.