From 9abcad9407d6c607a29516d349faf4d52ce7ed51 Mon Sep 17 00:00:00 2001 From: emankov Date: Fri, 4 Jan 2019 01:32:30 +0300 Subject: [PATCH] [HIPIFY][tests] CUDA 7.0 is also supported + Exclude 1 test for CUDA 7.0 + Update README.md --- hipify-clang/README.md | 2 +- tests/hipify-clang/lit.cfg | 2 ++ tests/hipify-clang/lit.site.cfg.in | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hipify-clang/README.md b/hipify-clang/README.md index 5b4424b791..e553fb4adc 100644 --- a/hipify-clang/README.md +++ b/hipify-clang/README.md @@ -34,7 +34,7 @@ `hipify-clang` requires: 1. LLVM+CLANG of at least version 3.8.0, latest stable and recommended release: 6.0.1 (linux and windows). -2. CUDA at least version 7.5, latest supported release is 9.0. +2. CUDA at least version 7.0, latest supported version is 9.0. | **LLVM release version** | **CUDA latest supported version** | **Comments** | |:------------------------:|:---------------------------------:|:------------:| diff --git a/tests/hipify-clang/lit.cfg b/tests/hipify-clang/lit.cfg index 462aba6c52..76a811031a 100644 --- a/tests/hipify-clang/lit.cfg +++ b/tests/hipify-clang/lit.cfg @@ -15,6 +15,8 @@ print("CUDA " + config.cuda_version + " will be used for testing.") config.excludes = ['cmdparser.hpp'] +if config.cuda_version_major == 7 and config.cuda_version_minor == 0: + config.excludes.append('headers_test_09.cu') if config.cuda_version_major < 8: config.excludes.append('cuSPARSE_02.cu') if config.cuda_version_major < 9: diff --git a/tests/hipify-clang/lit.site.cfg.in b/tests/hipify-clang/lit.site.cfg.in index f7302252a8..f93c206be4 100644 --- a/tests/hipify-clang/lit.site.cfg.in +++ b/tests/hipify-clang/lit.site.cfg.in @@ -6,6 +6,7 @@ config.obj_root = "@CMAKE_CURRENT_BINARY_DIR@" config.cuda_root = "@CUDA_TOOLKIT_ROOT_DIR@" config.cuda_dnn_root = "@CUDA_DNN_ROOT_DIR@" config.cuda_version_major = int("@CUDA_VERSION_MAJOR@") +config.cuda_version_minor = int("@CUDA_VERSION_MINOR@") config.cuda_version = "@CUDA_VERSION@" if sys.platform in ['win32']: config.cuda_sdk_root = "@CUDA_SDK_ROOT_DIR@"