Open tvottra opened 8 months ago
The results of manually pip installing torch_sparse are
pragma_scope : block
keep_pragma_attribute : False
pragma_order : parallel_and_merge
pragma_MLP_hidden_channels : [in_D // 2]
merge_MLP_hidden_channels : [in_D // 2]
model_path : ['/home/tvt/Software/HARP/models/v21/regression_pragma_as_MLP_2l-m-2l-p_model_state_dict.pth']
ensemble : 0
ensemble_weights : None
class_model_path : /home/tvt/Software/HARP/models/v21/class_pragma_as_MLP_2l-m-2l-p_model_state_dict.pth
feature_extract : False
fix_gnn_layer : 1
FT_extra : False
save_model : True
resample : False
val_ratio : 0.15
activation : elu
D : 64
lr : 0.001
weight_decay : 0
scheduler : cosine
warmup : linear
random_seed : 123
batch_size : 64
loss : MSE
epoch_num : 200
device : cuda:0
explorer : exhaustive
model_tag : test
prune_util : True
prune_class : True
print_every_iter : 100
plot_pred_points : True
user : tvt
hostname : Tommy-Linux
ts : 2024-03-06T21-02-42.573082
Logging to /home/tvt/Software/HARP/src/logs/dse_results_v21_2024-03-06T21-02-42.573082
Segmentation fault (core dumped)
I have successfully installed the required packages under a Ubuntu 22.04.4 system with Python 3.8 environment. Here are the efforts I made and not mentioned in the repository, please check whether it is helpful.
Run the following bash command before installation:
sudo apt-get install libopenblas-dev liblapack-dev gfortran
export fallow_argument=-fallow-argument-mismatch
export boz_argument=-fallow-invalid-boz
export FFLAGS="$fallow_argument $boz_argument -m64"
export FCFLAGS="$fallow_argument $boz_argument -m64"
Here the last four lines are dealing with a issue regarding the compatibility of Ubuntu 22 and Ubuntu 23. I found this forum and luckily it resolved the installation problem on my machine.
I tried following the dependency setup instructions with various Python versions and tried debugging them / altering steps to no success. System: Ubuntu 22.04
Python=3.6:
Python=3.7: Can grab dependencies. Runs with exception
Python3.10:
I'm guessing Python3.7 is the way to move forward. However, I've tried various things like upgrading the torch-* dependencies, manually pip installing torch_sparse, and etc. I always encounter some error: torch_geometric encountering a segmentation fault, numpy problems, etc. Could I please get guidance on this?