help > HPC, conn remotely, salloc, slurm
Apr 9, 2025  12:04 PM | Daniel Simon - Linköping University
HPC, conn remotely, salloc, slurm

I'm very new to HPC and I'd prefer to run CONN as much as possible through the GUI. If I understand it correctly, "conn remotely" seems like the perfect solution!


I have SSH access to a login node and I've already got Matlab 2024b and spm/conn installed and tested.  The HPC uses Slurm.


According to my HPC cluster instructions, I need to add some modules each time I start Matlab:


ml add PDC; ml matlab/r2024b


And then I should run Matlab on a processing node, not on the login node. (https://support.pdc.kth.se/doc/applicati...). I guess this means that there needs to be an salloc command and then an SSH to a processing node before starting Matlab?


I've tried to modify my connserver.json file accordingly:



{

"host": "dardel.pdc.kth.se",

"CONNcmd": "ml add PDC; ml matlab/r2024b; matlab -singleCompThread -nodesktop -noFigureWindows -nosplash -r \"addpath 'XXXXX/MATLAB/spm'; addpath 'XXXXX/MATLAB/conn'; conn %s; exit\"",

"SERVERcmd": "Slurm",

"SERVERpersistent": false

}

 

When I try to run "conn remotely" from my local computer, I get this response and then it just stops indefinitely:

Reading configuration information from XXXX@dardel.pdc.kth.se:~/connserverinfo.json to /Users/XXXXX/.conn_cache/conncache_3624ea761c68e03153b81f9752db03e7
Requesting a new Matlab session in XXXXX@dardel.pdc.kth.se. This may take a few minutes, please be patient as your job currently sits in a queue. CONN will resume automatically when the new Matlab session becomes available


As I said, I'm very new to this type of computing. I'm comfortable on the command line, but I'd really (really!) rather make this whole process as GUI-based as possible.

 

Advice, please!

 

I'm running Matlab locally on an M2 mac, Matlab R2024b update 5, CONN 22v2407, SPM 25.01 

Threaded View

TitleAuthorDate
HPC, conn remotely, salloc, slurm
Daniel Simon Apr 9, 2025
Daniel Simon Apr 16, 2025
Alfonso Nieto-Castanon Apr 16, 2025
Alfonso Nieto-Castanon Apr 12, 2025
Daniel Simon Apr 13, 2025
Alfonso Nieto-Castanon Apr 16, 2025