diff --git a/Analyze_optimization_results.ipynb b/Analyze_optimization_results.ipynb deleted file mode 100644 index ddc3f964..00000000 --- a/Analyze_optimization_results.ipynb +++ /dev/null @@ -1,98 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Overview\n", - "\n", - "This notebook analyses and visualizes the results of a `optimas` optimization." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "import numpy as np\n", - "import matplotlib.pyplot as plt\n", - "from optimas.post_processing import PostProcOptimization\n", - "%matplotlib notebook" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# Modify the path below, to point to your optimization\n", - "pp = PostProcOptimization('./optimization_folder/test_mf_disc/')" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "pp.get_df() " - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "pp.plot_optimization()\n", - "t0 = np.linspace(0, pp.get_df()['returned_time'].max(), 200 )\n", - "pp.get_trace(plot=True, t_array=t0);" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "plt.figure()\n", - "pp.plot_worker_timeline( fidelity_parameter='resolution' )" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "libe_env", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.9.15" - }, - "vscode": { - "interpreter": { - "hash": "bfb1269c5d150bb39b3cc7af346375a5d6d04845d8cc3a7072c5122e27bb644e" - } - } - }, - "nbformat": 4, - "nbformat_minor": 4 -} diff --git a/submission_scripts/juwels b/submission_scripts/juwels deleted file mode 100644 index 9e8d9d06..00000000 --- a/submission_scripts/juwels +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -x -#SBATCH -J {name} -#SBATCH --nodes={n_nodes} -#SBATCH --ntasks-per-node=4 -#SBATCH --output=mpi-out.%j -#SBATCH --error=mpi-err.%j -#SBATCH --time={max_time} -#SBATCH --partition=booster -#SBATCH --account=plasmabbq -#SBATCH --gres=gpu:4 - -source activate optimization - -export NUMBA_NUM_THREADS=1 -export OMP_NUM_THREADS=1 -export FBPIC_ENABLE_GPUDIRECT=0 -export CUDA_VISIBLE_DEVICES="" - -# Script to run libEnsemble using multiprocessing on launch nodes. -# Assumes Conda environment is set up. - -export LIBE_SIM_EXTRA_ARGS="--gres=gpu:1" - -python run_example.py --comms local --nworkers {n_workers} - - diff --git a/submission_scripts/lawrencium b/submission_scripts/lawrencium deleted file mode 100644 index 4a3379d9..00000000 --- a/submission_scripts/lawrencium +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -#SBATCH -J {name} -#SBATCH --partition es1 -#SBATCH --qos es_normal -#SBATCH --constraint es1_v100 -#SBATCH --time {max_time} -#SBATCH --nodes {n_nodes} -#SBATCH --gres=gpu:2 --cpus-per-task=4 - -module load python/3.6 -source activate $SCRATCH/fbpic_env - -export NUMBA_NUM_THREADS=1 -export OMP_NUM_THREADS=1 - -# Script to run libEnsemble using multiprocessing on launch nodes. -# Assumes Conda environment is set up. - -python run_example.py --comms local --nworkers {n_workers} diff --git a/submission_scripts/lawrencium_1080ti b/submission_scripts/lawrencium_1080ti deleted file mode 100644 index 38e18ac0..00000000 --- a/submission_scripts/lawrencium_1080ti +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -#SBATCH -J {name} -#SBATCH --partition es1 -#SBATCH --qos es_normal -#SBATCH --constraint es1_1080ti -#SBATCH --time {max_time} -#SBATCH --nodes {n_nodes} -#SBATCH --gres=gpu:4 --cpus-per-task=8 - -module load python/3.6 -source activate $SCRATCH/fbpic_env - -export NUMBA_NUM_THREADS=1 -export OMP_NUM_THREADS=1 - -# Script to run libEnsemble using multiprocessing on launch nodes. -# Assumes Conda environment is set up. - -python run_example.py --comms local --nworkers {n_workers} diff --git a/submission_scripts/perlmutter b/submission_scripts/perlmutter deleted file mode 100644 index 6f631c4a..00000000 --- a/submission_scripts/perlmutter +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -x -#SBATCH -J {name} -#SBATCH -A m3906_g -#SBATCH -C gpu -#SBATCH --time {max_time} -#SBATCH --nodes {n_nodes} -#SBATCH --ntasks-per-node=4 -#SBATCH --gpus-per-task=1 - -module load python -source activate optimas - -export MPICH_GPU_SUPPORT_ENABLED=0 -export FBPIC_ENABLE_GPUDIRECT=0 - -export LIBE_SIM_EXTRA_ARGS="--exact -u -n 1 --gpus-per-task 1 -c 32 --mem-per-gpu=60G" - -python run_example.py --comms local --nworkers {n_workers} diff --git a/submission_scripts/summit b/submission_scripts/summit deleted file mode 100644 index 06dfe9bc..00000000 --- a/submission_scripts/summit +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -x -#BSUB -P APH114 -#BSUB -J {name} -#BSUB -W {max_time} -#BSUB -nnodes {n_nodes} -#BSUB -alloc_flags "smt1" - -module purge -module load gcc/4.8.5 -module load cuda/9.1.85 -module load spectrum-mpi/10.3.1.2-20200121 -module load fftw/3.3.8 -module load python/3.7.0-anaconda3-5.3.0 -source activate fbpic -export CUPY_CACHE_DIR=/gpfs/alpine/scratch/rlehe/aph114/.cupy/kernel_cache - -export NUMBA_NUM_THREADS=1 -export OMP_NUM_THREADS=1 -export FBPIC_ENABLE_GPUDIRECT=0 -export FBPIC_DISABLE_CACHING=1 - -# Script to run libEnsemble using multiprocessing on launch nodes. -# Assumes Conda environment is set up. - -export LIBE_SIM_EXTRA_ARGS="-n 1 -a 1 -g 1 -c 1 --bind=packed:1" - -python run_example.py --comms local --nworkers {n_workers}