HomePhabricator

[OPENMP][NVPTX]Fixed checks for cuda versions.

Description

[OPENMP][NVPTX]Fixed checks for cuda versions.

Summary:
We used CUDART_VERSION macro to check for the installed cuda version
but this macro is defined in cuda_runtime_api.h, which is not used by
project. Better to use CUDA_VERSION macro, which is defined in cuda.h.
Also, added the check if this macro is defined. If macro is undefined,
there is something wrong with the cuda configuration and we should not
continue the compilation.
This also fixes problems with runtime building in cuda 10+.

Reviewers: grokos

Subscribers: guansong, jdoerfert, caomhin, kkwli0, openmp-commits

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D64648

Details

Committed
ABataevJul 16 2019, 9:07 AM
Differential Revision
D64648: [OPENMP][NVPTX]Fixed checks for cuda versions.
Parents
rL366223: [AMDGPU] Add the adjusted FP as a livein register.
Branches
Unknown
Tags
Unknown