Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit e086bce

Browse files
authored
Patch for disable emit_environment_object() for dppl context (#100)
Change introduced in 947b407 by @reazulhoque.
1 parent 44cdb40 commit e086bce

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

numba/core/lowering.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,8 @@ def emit_environment_object(self):
129129
self.context.declare_env_global(self.module, envname)
130130

131131
def lower(self):
132-
# DRD : Add this hack for the time ebing. Having a global env pointer,
133-
# even if it is a null pointer, breaks spirv-val.
134-
context_name = getattr(self.context, 'context_name', '')
135-
if not context_name in ("dppl.jit",):
136-
# Emit the Env into the module
137-
self.emit_environment_object()
138-
132+
# Emit the Env into the module
133+
self.emit_environment_object()
139134
if self.generator_info is None:
140135
self.genlower = None
141136
self.lower_normal_function(self.fndesc)

0 commit comments

Comments
 (0)