Giter VIP home page Giter VIP logo

Comments (4)

omegahm avatar omegahm commented on May 31, 2024 1

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.

dionhaefner avatar dionhaefner commented on May 31, 2024

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.

nutrik avatar nutrik commented on May 31, 2024

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.

dionhaefner avatar dionhaefner commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.