Page History
...
- use bash as your default shell, not tcsh or csh (conda doesn't support csh)
- to switch to bash SLAC wide (reccommended), follow instructions at https://confluence.slac.stanford.edu/display/SCSPub/How-to+change+your+shell to switch to bash at LCLS, at LCLS (a separate computing environment than the rest of SLAC) email pcds-it-l at slac.stanford.edu
- Either
- run the command: source /reg/g/psdm/etc/ana_env.sh as usual (explained in the psana python setup example)
- run the command: source conda_setup
- Or, if you don't need to use the old RPM based release system
- run the command: source /reg/g/psdm/bin/conda_setup
...
will start an interactive ipython session where tensorflow will only see device 1. Tensorflow will call the one device it sees device 0.
Tensorflow: Limit GPU
MemoryMemory on a Card
With tensorflow, you can write your code to only grab the GPU memory that you need:
with tf.device( '/gpu:0' ): # this with statement may not be necessary config = tf.ConfigProto() config.gpu_options.allow_growth = True config.allow_soft_placement = True with tf.Session(config = config) as sess: # now your program, all variables will default to going on the GPU, and # any that shouldn't go on a GPU will be put on the CPU. |
Configuration Subject to Change
...
Overview
Content Tools