HomePhabricator

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

Authored by ABataev on Jul 16 2019, 9:07 AM.

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

llvm-svn: 366224

Details

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