Comments (4)
With bh107/bohrium#526 having been merged to master on the Bohrium project, you should be able to choose the different GPUs with BH_OPENCL_DEVICE_NUMBER=0
and BH_OPENCL_DEVICE_NUMBER=1
.
from veros.
What kind of environment variables did you use?
You need to tell Bohrium which GPU you want to use; that should be possible via BH_OPENCL_PLATFORM_NO
(see docs). Trying to run both instances on the same GPU fails because the device runs out of memory.
from veros.
List of environment variables related to bohrium:
export BH_STACK=opencl
export BH_OPENCL_DEVICE_TYPE=gpu
export BH_OPENCL_PLATFORM_NO=0
module load bohrium/06032018
module load veros/06032018
I tried numbers 0 and 1 for BH_OPENCL_PLATFORM_NO
variable, but there is only 0 available.
terminate called after throwing an instance of 'std::runtime_error'
what(): No such OpenCL platform. Tried to fetch #1 out of 0.
Output of clinfo:
Platform #0
Name: NVIDIA CUDA
Version: OpenCL 1.2 CUDA 9.1.84
Device #0
Name: Tesla P100-PCIE-16GB
Type: GPU
Version: OpenCL 1.2 CUDA
Global memory size: 15 GB 920 MB 896 kB
Local memory size: 48 kB
Max work group size: 1024
Max work item sizes: (1024, 1024, 64)
Device #1
Name: Tesla P100-PCIE-16GB
Type: GPU
Version: OpenCL 1.2 CUDA
Global memory size: 15 GB 920 MB 896 kB
Local memory size: 48 kB
Max work group size: 1024
Max work item sizes: (1024, 1024, 64)
from veros.
Interesting. Bohrium actually only offers an option to choose the OpenCL platform (such as CPU vs. GPU), not the device on that platform to be used for computations (is seems to choose the first it finds: https://github.com/bh107/bohrium/blob/9f022432ead25bfccb68a13d8fa032b638d7b6bf/ve/opencl/engine_opencl.cpp#L62). You should raise this issue with Bohrium. Up until then, I'm afraid it's not possible to run Veros on multiple devices on the same platform in parallel.
from veros.
Related Issues (20)
- Linear solver issue when parallelising VEROS HOT 1
- Document overturning variables HOT 2
- Bathymetry in Veros HOT 1
- Changing grid resolution and a closed ITF in global_4deg setup HOT 1
- How to run Veros via MPI on a cluster with slurm? HOT 1
- How to run veros with multi-GPU HOT 5
- Perturbation to basic state variables HOT 20
- The latest model version is not displayed correctly in documentation HOT 2
- How to change the sampling frequency of Veros 1
- How to change the sampling and output frequency of veros 1_deg model ? HOT 6
- No output files generating while using mpirun with JAX HOT 18
- How to add a mask file to veros and how to call in the model setup ? HOT 15
- Output variables HOT 11
- ENH: more metadata in diagnostic outputs? HOT 2
- North Atlantic Missing assets.json HOT 2
- Set beginning and ending time for simulation? HOT 4
- Veros using 10% of CPU HOT 1
- Using the North Atlantic regional setup for other regions HOT 5
- Update function HOT 17
- Unable to use the "veros create-mask" command to create mask images HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from veros.