cuda.eclass: Add version and sandbox helper methods
authorJason Zaman <perfinion@gentoo.org>
Tue, 18 Sep 2018 05:55:03 +0000 (13:55 +0800)
committerJason Zaman <perfinion@gentoo.org>
Fri, 21 Sep 2018 16:05:41 +0000 (00:05 +0800)
commitbce7726afd984518ea4ad9eddddf78df03ff36b9
treea98a1127bc9173242026205c25cdc7c360e04e2c
parentff02dab8c2ae831144e9b3efd9472b61bc3a6867
cuda.eclass: Add version and sandbox helper methods

cuda_toolkit_version returns the version of dev-util/nvidia-cuda-toolkit
cuda_cudnn_version returns the version of dev-libs/cudnn
cuda_add_sandbox adds the nvidia dev nodes to the sandbox

Signed-off-by: Jason Zaman <perfinion@gentoo.org>
eclass/cuda.eclass