Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
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
Patch for disable emit_environment_object() for dppl context
Change introduced in 947b407 by @reazulhoque.
  • Loading branch information
PokhodenkoSA committed Nov 13, 2020
commit d868d669c03055533fe139e0b730e6481f5e561f
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