Closed WanLang0 closed 1 year ago
This is most likely because you ran out of memory (see for instance https://www.positioniseverything.net/terminate-called-after-throwing-an-instance-of-std_bad_alloc/). Can you check your memory consumption while running the model? Also, it is hard to provide more help without more details about your setup. Could you give more details about the machine you use, etc.
Thank you for your reply. My configuration is a Tesla T4 GPU and Ubuntu 18.04 system with a single CUDA 10.2 video memory of 15G. I have observed my gpu occupancy rate, which has been kept close to unoccupied. My operation steps are as follows:
1.Execute command conda env create --file=environment_gpu.yml
and conda activate nsd
,I installed pyg module manually because of 404 error
2.Execute command pytest -v .
.As a result, there are two kinds of errors: Aborted (core dumped)
;Segmentation fault (core dumped)
3.Execute command sh ./exp/scripts/run_texas.sh
.The above errors also occur, occasionally
terminate called after throwing an instance of 'std::bad_alloc'
OK. What was the 404 error more exactly? conda env create --file=environment_gpu.yml
should just work. Did you install the same version of pyG as the one in environment_gpu.yml
? The conda installation from file is also doing some dependency checking and might change certain versions to make packages compatible, so it is not equivalent to installing pyG separately.
I did test the repo on multiple machines (with MacOS and Ubuntu) and other people managed to run them in the last few days. Our automated tests (https://github.com/twitter-research/neural-sheaf-diffusion/actions) are also installing the dependencies and running all the tests, and they are currently passing. So I would guess it is because things are not installed properly or some other problem in your setup.
If you could tell me how I can reproduce this error, I can look into it.
OK, I have run it successfully now. The reason for the previous error is that pyg is not installed correctly. Thank you for your help.
Glad you managed to get it working. Will close the issue now, but let me know if you encounter other issues.
Hi,your project code is excellent.But I ran into a problem at runtime.I'm running
sh ./exp/scripts/run_texas.sh
, the console reports the following error,Please take a look, thank you!