File tree Expand file tree Collapse file tree 4 files changed +41
-0
lines changed
test/dpct/cmake_migration/case_007 Expand file tree Collapse file tree 4 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: rm -rf %T && mkdir -p %T
2
+ // RUN: cd %T
3
+ // RUN: cp %S/input.cmake ./input.cmake
4
+ // RUN: dpct -in-root ./ -out-root out ./input.cmake --migrate-cmake-script-only
5
+ // RUN: echo "begin" > %T/diff.txt
6
+ // RUN: diff --strip-trailing-cr %S/expected.txt %T/out/input.cmake >> %T/diff.txt
7
+ // RUN: echo "end" >> %T/diff.txt
8
+
9
+ // CHECK: begin
10
+ // CHECK-NEXT: end
Original file line number Diff line number Diff line change
1
+ dpct_helper_compile_sycl_code(CUDA_FATBINS ${CUDA_FATBIN_SOURCE})
2
+
3
+ dpct_helper_compile_sycl_code(FATBINS main.dp.cpp)
4
+
5
+ dpct_helper_compile_sycl_code(${TARGET} ${CMAKE_SOURCE_DIR}/foo/bar/util.dp.cpp)
Original file line number Diff line number Diff line change
1
+ cuda_compile_fatbin (CUDA_FATBINS ${CUDA_FATBIN_SOURCE} )
2
+
3
+ cuda_compile_fatbin (FATBINS main.cu OPTIONS -arch=sm80 )
4
+
5
+ cuda_compile_fatbin (${TARGET} ${CMAKE_SOURCE_DIR} /foo/bar/util.cu )
Original file line number Diff line number Diff line change 509
509
MatchMode : Full
510
510
RuleId : " remove_-static-libstdc++"
511
511
512
+ - Rule : rule_cuda_compile_fatbin
513
+ Kind : CMakeRule
514
+ Priority : Fallback
515
+ CmakeSyntax : cuda_compile_fatbin
516
+ In : cuda_compile_fatbin(${value})
517
+ Out : dpct_helper_compile_sycl_code(${value})
518
+ Subrules :
519
+ value :
520
+ In : ${arg}.cu
521
+ Out : ${arg}.dp.cpp
522
+ MatchMode : Partial
523
+ RuleId : " replace_source_extension_with_dp_cpp"
524
+
525
+ - Rule : rule_cuda_compile_fatbin_remove_opts
526
+ Kind : CMakeRule
527
+ Priority : Fallback
528
+ CmakeSyntax : cuda_compile_fatbin_opts
529
+ In : dpct_helper_compile_sycl_code(${value} OPTIONS ${options})
530
+ Out : dpct_helper_compile_sycl_code(${value})
531
+
512
532
- Rule : rule_cuda_add_cufft_to_target
513
533
Kind : CMakeRule
514
534
Priority : Fallback
515
535
CmakeSyntax : cuda_add_cufft_to_target
516
536
In : cuda_add_cufft_to_target(${target})
517
537
Out : dpct_helper_add_mkl_to_target(${target})
518
538
539
+
You can’t perform that action at this time.
0 commit comments