Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/plasma-umass/scalene
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryberger committed Feb 20, 2023
2 parents 23079a6 + 5290b62 commit a2c43c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scalene/scalene_profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ def __init__(
cmdline += f" --pid={os.getpid()} ---"
payload = """#!/bin/bash
echo $$
%s %s -m scalene %s $@
%s %s -m scalene %s "$@"
""" % (
preface,
sys.executable,
Expand Down
9 changes: 7 additions & 2 deletions src/include/samplefile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,13 @@ class SampleFile {
close(init_fd);
}
~SampleFile() {
munmap(_mmap, MAX_FILE_SIZE);
munmap(_lastpos, LOCK_FD_SIZE);
// NOTE: These unmaps were causing issues
// sometimes leading to a SIGSEGV when BLAS
// threads were tearing down.
// Removing these unmaps resolved the issue
//
// munmap(_mmap, MAX_FILE_SIZE);
// munmap(_lastpos, LOCK_FD_SIZE);
unlink(_signalfile);
unlink(_lockfile);
unlink(_init_filename);
Expand Down

0 comments on commit a2c43c9

Please sign in to comment.