Commit 86a2c940 authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Don't inject Python global vars that are not used by the kernel



Signed-off-by: default avatarThien Nguyen <nguyentm@ornl.gov>
parent 818f4d16
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -186,8 +186,8 @@ class qjit(object):
            if descStr.startswith("<module "):
                moduleName = descStr.split()[1].replace("'", "")
                importedModules[key] = moduleName
            else:
                # Import global variables:
            elif key in fbody_src:
                # Import global variables (if used in the body):
                # Only support float atm
                if (isinstance(globalVars[key], float)):
                    globalVarDecl.append(key + " = " + str(globalVars[key]))