[HIPIFY] Starts implicitly setting '-x cuda' by hipify-clang itself

+ No need in setting '-x cuda' for the user anymore;
+ Testing and Readme updated accordingly.
이 커밋은 다음에 포함됨:
emankov가 2018-12-29 17:04:59 +03:00를 커밋했습니다
1 부모 2a460586d1
커밋 cea1e5a1a6
3 파일이 변경됨
+3 -2

검색과 일치하는 파일 없음

-1
파일 보기
@@ -321,7 +321,6 @@ For example:
./hipify-clang \
square.cu \
-- \
-x cuda \
--cuda-path=/usr/local/cuda-8.0 \
--cuda-gpu-arch=sm_50 \
-isystem /usr/local/cuda-8.0/samples/common/inc
+2
파일 보기
@@ -171,6 +171,8 @@ int main(int argc, const char **argv) {
ReplacementsFrontendActionFactory<HipifyAction> actionFactory(&replacementsToUse);
std::string sInclude = "-I" + sys::path::parent_path(sourceAbsPath).str();
Tool.appendArgumentsAdjuster(ct::getInsertArgumentAdjuster(sInclude.c_str(), ct::ArgumentInsertPosition::BEGIN));
Tool.appendArgumentsAdjuster(ct::getInsertArgumentAdjuster("cuda", ct::ArgumentInsertPosition::BEGIN));
Tool.appendArgumentsAdjuster(ct::getInsertArgumentAdjuster("-x", ct::ArgumentInsertPosition::BEGIN));
Tool.appendArgumentsAdjuster(ct::getInsertArgumentAdjuster("--cuda-host-only", ct::ArgumentInsertPosition::BEGIN));
// Ensure at least c++11 is used.
std::string stdCpp = "-std=c++11";
+1 -1
파일 보기
@@ -60,7 +60,7 @@ if obj_root is not None:
config.environment['PATH'] = path
hipify_path = obj_root
clang_args = "-x cuda -v --cuda-gpu-arch=sm_30 --cuda-path='%s'"
clang_args = "-v --cuda-gpu-arch=sm_30 --cuda-path='%s'"
if sys.platform in ['win32']:
run_test_ext = ".bat"