IntelligentSoftwareSystems / Galois

Galois: C++ library for multi-core and multi-node parallelization
http://iss.ices.utexas.edu/?p=projects/galois
Other
313 stars 133 forks source link

Compilation Problems #393

Closed Steamgjk closed 2 years ago

Steamgjk commented 2 years ago
图片

I can successfully compile and run the tutorial examples. However, when I try to compile the entire project with make -j, I encountered the failure. It also makes the VM dead (Seems it hajacks my terminal and I cannot even open new terminals to kill it), and I have to reboot the VM to recover.

Anyone knows about the issue?

Sanzo00 commented 2 years ago

If you dont specify the number of jobs, make -j will create an infinite number of jobs when compile the code, which may exceed the memory limit, and you can try to use make -j8 (in my computer 8 is the number of threads) to reduce the number of jobs.

Steamgjk commented 2 years ago

Thanks. @Sanzo00 It is really this case. My VM has 8 cores, and after I specified make -j4, I can successfully compile it. For the previous failure, I think it may be related to resource insufficiency, so reducing parallel jobs can address it. (Maybe should add a reminder note in the ReadMe.md

图片