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

Patch for disable emit_environment_object() for dppl context #100

Merged
merged 1 commit into from
Nov 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions numba/core/lowering.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,8 @@ def emit_environment_object(self):
self.context.declare_env_global(self.module, envname)

def lower(self):
# DRD : Add this hack for the time ebing. Having a global env pointer,
# even if it is a null pointer, breaks spirv-val.
context_name = getattr(self.context, 'context_name', '')
if not context_name in ("dppl.jit",):
# Emit the Env into the module
self.emit_environment_object()

# Emit the Env into the module
self.emit_environment_object()
if self.generator_info is None:
self.genlower = None
self.lower_normal_function(self.fndesc)
Expand Down