[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] _CONDOR_SCRATCH_DIR in submit file?



> On Oct 25, 2016, at 1:19 PM, Dimitri Maziuk <dmaziuk@xxxxxxxxxxxxx> wrote:
> 
> On 10/25/2016 11:49 AM, Michael Pelletier wrote:
>> I've been able to set "MCR_CACHE_ROOT=." in the PreEnvironment
> directive along with "should_transfer_files=yes" and have it work as
> expected - the .mcrCache directory got created in scratch space instead
> of the /tmp path. Might have been a different version, though.
> 
> Yeah, I too am sure I've been able to set MCR_CACHE_ROOT, but it must
> have been a different life.
> 
> environment = "MCR_CACHE_VERBOSE=1 MCR_CACHE_ROOT=. LD_LIBRARY_PATH..."
> 
>> Unable to start MATLAB. Relative path for preferences directory ('./.mcrCache9.0.1/main_F0/.matlab') is not supported
> 
> environment = "MCR_CACHE_VERBOSE=1 MCR_CACHE_ROOT=$Fp(.) ..."
> 
>> Creating MATLAB Runtime Cache at location: /tmp/.mcrCache9.0.1
> ...
>> Acquiring MATLAB Runtime cache root-level directory lock...caught dsPermissionDenied exception: Tried to obtain a lock on a directory without write permiss
>> ion: /tmp/.mcrCache9.0.1/.deploy_lock.0; re-throwing...
> 
> -- because someone else already ran matlab on this node.
> 
> I guess the wrapper script will have to do.

Would MOUNT_UNDER_SCRATCH=/tmp work here?  That should cause a private copy of /tmp per-job.

Brian