Skip to content
Snippets Groups Projects
Commit 69c1914a authored by tomrink's avatar tomrink
Browse files

make some changes for running on SLURM

parent 0197814e
Branches
No related tags found
No related merge requests found
......@@ -219,6 +219,7 @@ class IcingIntensityNN:
tf.debugging.set_log_device_placement(LOG_DEVICE_PLACEMENT)
# Note: Don't do this anymore, because nobody else willing to do so as well!
# Also, doesn't seem to play well with SLURM
# gpus = tf.config.experimental.list_physical_devices('GPU')
# if gpus:
# try:
......@@ -918,7 +919,8 @@ class IcingIntensityNN:
self.test_preds = preds
def run(self, filename_l1b_trn, filename_l1b_tst, filename_l2_trn, filename_l2_tst):
with tf.device('/device:GPU:'+str(self.gpu_device)):
# This doesn't really play well with SLURM
# with tf.device('/device:GPU:'+str(self.gpu_device)):
self.setup_pipeline(filename_l1b_trn, filename_l1b_tst, filename_l2_trn, filename_l2_tst)
self.build_model()
self.build_training()
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment