summaryrefslogtreecommitdiff
path: root/dev-util/nvidia-cuda-toolkit/files/cuda-config.in
blob: 10db7dd08b76d8a5a475845eb63ff736834c65ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash

SUPPORT_GCC_VERSIONS_BY_CUDA="CUDA_SUPPORTED_GCC"

_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 255
		;;
	*)
		_print_help
		exit 1
		;;
esac