Skip to content

Commit

Permalink
Drop before merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
sv2518 committed Jul 7, 2020
1 parent fdf3fad commit 877a93a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyop2/compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def get_so(self, jitmodule, extension):
# Link into temporary file, then rename to shared library
# atomically (avoiding races).
tmpname = os.path.join(cachedir, "%s_p%d.so.tmp" % (basename, pid))
tmpname = soname

if configuration['check_src_hashes'] or configuration['debug']:
matching = self.comm.allreduce(basename, op=_check_op)
Expand Down Expand Up @@ -344,7 +345,7 @@ def get_so(self, jitmodule, extension):
Compile log in %s
Compile errors in %s""" % (e.cmd, e.returncode, logfile, errfile))
# Atomically ensure soname exists
os.rename(tmpname, soname)
# os.rename(tmpname, soname)
# Wait for compilation to complete
self.comm.barrier()
# Load resulting library
Expand Down

0 comments on commit 877a93a

Please sign in to comment.