mirror of
https://github.com/smyalygames/FiniteVolumeGPU.git
synced 2025-05-18 06:24:13 +02:00
feat: add progress bar for Autotuner
This commit is contained in:
parent
079bad08b8
commit
e7cd6ae34a
@ -25,6 +25,7 @@ import gc
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import logging
|
import logging
|
||||||
from socket import gethostname
|
from socket import gethostname
|
||||||
|
from tqdm.auto import tqdm
|
||||||
|
|
||||||
import pycuda.driver as cuda
|
import pycuda.driver as cuda
|
||||||
|
|
||||||
@ -155,9 +156,9 @@ class Autotuner:
|
|||||||
sim_arguments = arguments.copy()
|
sim_arguments = arguments.copy()
|
||||||
|
|
||||||
with Common.Timer(simulator.__name__) as t:
|
with Common.Timer(simulator.__name__) as t:
|
||||||
for j, block_height in enumerate(block_heights):
|
for j, block_height in enumerate(tqdm(block_heights, desc='Autotuner Progress')):
|
||||||
sim_arguments.update({'block_height': block_height})
|
sim_arguments.update({'block_height': block_height})
|
||||||
for i, block_width in enumerate(block_widths):
|
for i, block_width in enumerate(tqdm(block_widths, desc=f'Iteration {j} Progress', leave=False)):
|
||||||
sim_arguments.update({'block_width': block_width})
|
sim_arguments.update({'block_width': block_width})
|
||||||
megacells[j, i] = Autotuner.run_benchmark(simulator, sim_arguments)
|
megacells[j, i] = Autotuner.run_benchmark(simulator, sim_arguments)
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ dependencies:
|
|||||||
- pycuda
|
- pycuda
|
||||||
- ipyparallel
|
- ipyparallel
|
||||||
- line_profiler
|
- line_profiler
|
||||||
|
- tqdm
|
||||||
|
|
||||||
# Install conda environment (one-time operation):
|
# Install conda environment (one-time operation):
|
||||||
# $ conda env create -f conda_environment.yml
|
# $ conda env create -f conda_environment.yml
|
||||||
|
@ -12,6 +12,7 @@ dependencies:
|
|||||||
- pytools
|
- pytools
|
||||||
- netcdf4
|
- netcdf4
|
||||||
- scipy
|
- scipy
|
||||||
|
- tqdm
|
||||||
|
|
||||||
# Install conda environment (one-time operation):
|
# Install conda environment (one-time operation):
|
||||||
# $ conda env create -f conda_environment_hpc.yml
|
# $ conda env create -f conda_environment_hpc.yml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user