Clang android ndk variant not supported by nvcc

The docs have 3.8+ as supported, but clang in ndk-14 produces an error (probably due to incorrect parsing)

nvcc fatal   : The version ('306280') of the host compiler ('clang') is not supported

clang --version
Android clang version 3.8.275480  (based on LLVM 3.8.275480)
Target: x86_64-unknown-linux
Thread model: posix
InstalledDir: <NDK>/toolchains/llvm/prebuilt/linux-x86_64/bin

#define __VERSION__ "4.2.1 Compatible Android Clang 3.8.275480 "
#define __clang_major__ 3
#define __clang_minor__ 8
#define __clang_patchlevel__ 275480
#define __clang_version__ "3.8.275480 "

The latest ndk-15 clang also isn’t supported but I don’t expect it to be anytime soon.

nvcc fatal   : The version ('350080') of the host compiler ('clang') is not supported

clang --version
Android clang version 5.0.300080  (based on LLVM 5.0.300080)
Target: x86_64-unknown-linux
Thread model: posix
InstalledDir: <NDK>/toolchains/llvm/prebuilt/linux-x86_64/bin

#define __VERSION__ "4.2.1 Compatible Android Clang 5.0.300080 "
#define __clang_major__ 5
#define __clang_minor__ 0
#define __clang_patchlevel__ 300080
#define __clang_version__ "5.0.300080 "

Forgot to say that nvcc is from cuda 8.0

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61

The docs don’t indicate any kind of android support:

http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#system-requirements

You’re right, the docs don’t have Android listed; I wasn’t clear.

The supported way is through CodeWorks and cuda 7 using ndk-12b (that will use GCC).
The newer ndks no longer support GCC, and it will be removed soon.

Fundamentally CodeWorks can be replaced with build scripts (that can be generated with cmake). Android Studio 2.2 and newer support this with cmake.

For my needs, I can
-Help Nvidia add the option to use an otherwise supported compiler
-Force nvcc to accept Android clang (by reporting the version differently)
-Rewrite the code to go through clang’s nvcc support (new since around version 3.9)

It seems to me the best-practices approach is to help push this along, while I’ll do the quick-fix on my own.