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 | |
#SBATCH --job-name="1PW_serie2_He" | |
#SBATCH --output=petawatt_%j.log # Standard output and error log | |
#SBATCH --account=ptomassini_a+ | |
#SBATCH --mail-type=END,FAIL # Mail events (NONE, BEGIN, END, FAIL, ALL) | |
#SBATCH --mail-user=paolo.tomassini@mail.eli-np.ro | |
#SBATCH --partition=gpu | |
#SBATCH --time 144:00:00 # Max allowed job runtime | |
#SBATCH --ntasks=4 | |
#SBATCH --ntasks-per-node=4 |
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
""" | |
Optuna example that optimizes a simple quadratic function. | |
In this example, we optimize a simple quadratic function (ha, not anymore). We also demonstrate how to continue an | |
optimization and to use timeouts. | |
""" | |
import numpy as np | |
import optuna |
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 dask.array as da | |
chunks = list() | |
for job in proj: | |
h5f = LastH5File(job) | |
sh = h5py.File(h5f.fpath, "r")[ | |
"/data/91800/particles/electrons/weighting" | |
].shape[0] | |
chunks.append(sh) |
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
CgroupAutomount=yes | |
CgroupReleaseAgentDir="/etc/slurm/cgroup" | |
ConstrainCores=yes | |
ConstrainDevices=yes | |
ConstrainRAMSpace=yes | |
#TaskAffinity=yes |
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 | |
#SBATCH --partition=gpu | |
#SBATCH -t 72:00:00 | |
#SBATCH --ntasks=16 | |
#SBATCH --ntasks-per-node=16 | |
#SBATCH --cpus-per-task=1 | |
#SBATCH --mem-per-cpu=31200m | |
#SBATCH --gres=gpu:16 | |
#SBATCH --gres-flags=enforce-binding | |
#SBATCH --account=berceanu_a+ |
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
.............s....................E................................................................................................................................................................s...............s............................................................................/data/storage/berceanu/software/pkg/miniforge3pic/lib/python3.8/site-packages/numba/cuda/decorators.py:69: NumbaDeprecationWarning: Deprecated keyword argument `argtypes`. Signatures should be passed as the first positional argument. | |
warn(msg, category=NumbaDeprecationWarning) | |
/data/storage/berceanu/software/pkg/miniforge3pic/lib/python3.8/site-packages/numba/cuda/decorators.py:69: NumbaDeprecationWarning: Deprecated keyword argument `argtypes`. Signatures should be passed as the first positional argument. | |
warn(msg, category=NumbaDeprecationWarning) | |
........................................................................................................................./data/storage/berceanu/software/pkg/miniforge3pic/lib/p |
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
from numba import cuda | |
with cuda.gpus[0]: | |
dev = cuda.get_current_device() | |
print(dev.uuid) | |
with cuda.gpus[1]: | |
dev = cuda.get_current_device() | |
print(dev.uuid) |
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
""" | |
This is an input script that runs a simulation of | |
laser-wakefield acceleration using FBPIC. | |
Usage | |
----- | |
- Modify the parameters below to suit your needs | |
- Type "python lwfa_script.py" in a terminal | |
Help |