This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Change the directory where the `instant` compiler compiles to

+1 vote

Quite regularly my simulations run in ssh/screen sessions fail because of our institute's server settings.

One problem is that my "home" directory becomes unavailable after a certain amount of time. Then jit can no more access the directory ~/.instant ...

How can I change the target directory of jit?

asked Oct 16, 2014 by Jan FEniCS User (8,290 points)

1 Answer

+1 vote
 
Best answer

You can set it by the following environmental variable:

export INSTANT_CACHE_DIR=/your/favorite/place
answered Oct 16, 2014 by johanhake FEniCS Expert (22,480 points)
selected Oct 16, 2014 by Jan

Do you also need to set INSTANT_ERROR_DIR ?

Yes, Chris, it looks like it. Not sure why the error dir is not related to the INSTANT_CACHE_DIR though...

I will try this as well. As for your questions.

Yes - $HOME is different from myfavdir.
Yes - I set everything in one session and, indeed, myfavdir is used to store the instant files.
No - the permissions to the local disc aren't removed when I detach the screen session.
No - there is no submission system, it is just a workstation I access via ssh.

Ok, now, it is no more the directory itselt but some boost sources that cannot be accessed. I definitely have to get back to our sys admins on this.

@johanhake - yes I often wondered that too. I guess this should be an Issue for instant.

...