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 May 29, 2024 14:11
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