Created
December 3, 2018 20:35
-
-
Save goraj/ed099c80cd8233e9e8463b37384b2470 to your computer and use it in GitHub Desktop.
reproduce.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
>>> dask.__version__ | |
'1.0.0' | |
>>> umap.__version__ | |
'0.3.7' | |
''' | |
from dask.distributed import Client | |
def do_run(arg1, arg2): | |
# this import triggers the segfault | |
import umap | |
return 42 | |
if __name__ == '__main__': | |
client = Client(processes=True, | |
ip='127.0.0.1', | |
#n_workers=1, | |
memory_limit='40GB') | |
config_path = '' | |
name = '' | |
lo_classes = [None, None, None] | |
n_trial = 3 | |
pool = [] | |
# crashes | |
for trial in range(n_trial): | |
for lo_class in lo_classes: | |
# the following line triggers a segfault in libffi.so | |
#pool.append(client.submit(do_run, trial, lo_class)) | |
# this line alone works fine | |
pool.append(client.submit(do_run, 1, lo_class)) | |
# following line crashes | |
#pool.append(client.submit(do_run, trial, 1)) | |
result = client.gather(pool) | |
print(result) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment