Matlab 2022B note on Glue/TerpConnect

Matlab 2022B on Glue/TerpConnect is a bit odd because of the use of hard links
Matlab 2022B on Linux uses hard links which don't work across different file systems.  When you use the central installation of Matlab 2022b "module load matlab/2022b", these hard links don't work across AFS and /tmp on the local file system.
Here is a link describing the issue.
The specific Matlab commands would be something like what is below which is customized for your user.  I'm not sure this will work because I don't really understand why and under what circumstances they are using a hard link.  It makes no sense to me that they would use a hard link instead of a symbolic link for whatever they are trying to do.
clear all
tempdir
setenv('TMPDIR','<your afs home directory path>/<whatever you want the local matlab tmp directory to be')
clear all
tempdir 
An example of the setenv above.
setenv('TMPDIR','/afs/glue.umd.edu/home/math/p/petersd/home/tmp')


Keywordsmathworks   Doc ID122337
OwnerJeff M.GroupUMD Engineering IT
Created2022-11-07 14:32:12Updated2022-11-07 15:26:01
SitesUniversity of Maryland Engineering IT
Feedback  0   0