Skip to content

Instantly share code, notes, and snippets.

View dhidas's full-sized avatar

Dean Andrew Hidas dhidas

View GitHub Profile
@matthiasdiener
matthiasdiener / build-gcc-offload-nvptx.sh
Last active March 5, 2024 11:46
Script to build gcc with OpenMP offloading to Nvidia devices (via nvptx)
#!/bin/bash
#
# Build GCC with support for offloading to NVIDIA GPUs.
#
set -o nounset -o errexit
# Location of the installed CUDA toolkit
cuda=/usr/local/cuda