#!/bin/bash SUPPORT_GCC_VERSIONS_BY_CUDA="4.4 4.5 4.6 4.7 4.8 4.9 5.4 6.4 7.3" _print_help() { cat <<- EOF Usage: $(basename $0) [options] -s | --supported Returns by current CUDA supported gcc versions -h | --help Shows this help EOF } case ${1} in -s|--supported) echo "${SUPPORT_GCC_VERSIONS_BY_CUDA}" exit 0 ;; -h|--help) _print_help exit -1 ;; *) _print_help exit 1 ;; esac