Showing posts with label standalone. Show all posts
Showing posts with label standalone. Show all posts
Wednesday, December 22, 2010
isdeployed( )
isdeployed() is a handy function in matlab to check whether a piece of matlab code is running as a standalone deployed app or whether it is running in native matlab.
Monday, April 5, 2010
How to solve MCR cache access problems on a cluster
Often when I run compiled matlab applications on a cluster, I get the error message
"Could not access the MCR component cache."
"Could not access the MCR component cache."
This tends to happen because matlab is not able to access the MCE cache directory. By default this happens to be your home directory. When a large number of compiled matlab programs are starting off/running simultaneously (e.g. you submit a job array), the load on the file system is too great giving rise to the problem.
The simplest way to solve this problem, if to point the MCR_CACHE_ROOT environment variable to a local temporary directory on each node on the cluster.
export MCR_CACHE_ROOT=$TMPDIR
This redirects the cache to a temp directory that is able to handle the traffic.
Subscribe to:
Posts (Atom)