This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import subprocess | |
import io | |
import time | |
import pandas as pd | |
class GetPower(object): | |
def __enter__(self): | |
cmd = "nvidia-smi --query-gpu=index,timestamp,name,power.draw --format=csv --loop-ms=5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/make -f | |
# Makefile for installing OpenMPI | |
# | |
# -Andreas Herten, 15 Dec 2017 | |
SHELL = /bin/bash | |
PRGNAME = openmpi | |
VERSION = 4.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
omp_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
_SYSTEMNAME=$(cat /etc/FZJ/systemname) | |
USERSHELL=/bin/zsh | |
case $_SYSTEMNAME in | |
juron) | |
export SYSTEMNAME="JURON" | |
;; | |
juwels) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/make -f | |
# Makefile for installing Tensorflow | |
# | |
# -Andreas Herten, 1 Feb 2019 | |
SHELL = /bin/bash | |
NAME = tensorflow | |
VERSION = 1.12.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This file sets the environment variable CUDA_VISIBLE_DEVICES to the MPI local rank to enable multi-GPU usage of this benchmark. Note that this disables any GPU distribution handling by he batch scheduler. | |
# Background: Most/some batch schedulers set CUDA_VISIBLE_DEVICES to all available GPUs on a node. In that case, the Arbor benchmark would only use the first entry in the list, probably GPU#0. This script changes that. | |
# -Andreas Herten, Nov 2018 | |
_verbose=1 | |
localrank=$CUDA_VISIBLE_DEVICES | |
if [[ -n "$OMPI_COMM_WORLD_NODE_RANK" ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import inspect | |
from __future__ import print_function | |
class Counter(object): | |
"""Simple counter, counting an invocation my means of a string (explicit call) or function name (decorator)""" | |
counters = {} | |
def __init__(self, *args, **kwargs): | |
"""Construct class. First, check if class is called via a decorator or directly. If true, defer incrementing counter until wrapped function is actually called (see __call__). If false, increment counter now.""" | |
if callable(args[0]): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder