Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for withnvptx easyconfig parameter, to enable GPU offloading, in GCC easyblock #2235

Merged
merged 2 commits into from
Nov 17, 2020

Commits on Nov 15, 2020

  1. Enable withnvptx parameter: enables GPU offloading

    GCC supports offloading to NVidia GPUs via OpenMP and OpenACC.
    To allow this via the easyblock the following strategy is used:
    an iterative build with 3 steps:
    0. build and install GCC as usual except adding --without-cuda-driver
       --enable-offload-targets=nvptx-none to configopts.
    1. build nvptx-tools with this GCC, install in the same location
    2. build and install GCC with target nvptx-none so it can compile
       NVPTX code.
    
    Thanks to
    https://gist.github.com/matthiasdiener/e318e7ed8815872e9d29feb3b9c8413f
    https://sources.debian.org/src/gcc-10/10.2.0-17/debian/rules2/
    https://github.com/eth-cscs/production/blob/master/easybuild/easyconfigs/g/GCCcore/GCCcore-7.3.0-cuda-9.1-offload.eb
    for inspiration.
    
    Closes easybuilders#2232
    bartoldeman committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    8322e0f View commit details
    Browse the repository at this point in the history
  2. Appease the Hound

    bartoldeman committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    3caa344 View commit details
    Browse the repository at this point in the history