This is an archive of the discontinued LLVM Phabricator instance.

[CUDA] Add preliminary support for CUDA 10.0
AbandonedPublic

Authored by fwyzard on Sep 24 2018, 2:17 PM.

Details

Reviewers
tra
Summary

Add the definitions for CUDA 10.0 and CUDA architecture 7.5 (Turing), and define CUDA 10.0 as the highest supported version.

Starting with CUDA 10.0, the include files

include/crt/*
include/common_functions.h
include/device_double_functions.h
include/device_functions.h
include/host_config.h
include/host_defines.h
include/math_functions.h

are marked as internal, and issue a warning if they are directly included.
To suppress the warning, __clang_cuda_runtime_wrapper.h defines the macro __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__ before including any of them.

Diff Detail

Event Timeline

fwyzard created this revision.Sep 24 2018, 2:17 PM
fwyzard edited the summary of this revision. (Show Details)Sep 24 2018, 2:19 PM
tra added a comment.Sep 24 2018, 2:45 PM

Great to see someone beating me to add support for a new CUDA version. :-)
I've posted my patch in D52438. It's very similar to yours with a couple of other necessary changes.

Thanks, indeed I missed some of the changes related to SM 7.5.

Hahnfeld added a subscriber: Hahnfeld.

I think this revision can be closed after rC342924?

fwyzard abandoned this revision.Sep 30 2018, 9:13 AM