File tree Expand file tree Collapse file tree 4 files changed +63
-1
lines changed
test/dpct/cmake_migration/case_045 Expand file tree Collapse file tree 4 files changed +63
-1
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-build-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
+ # Compiler options
2
+ set_source_files_properties(fused_softmax/scaled_masked_softmax.dp.cpp
3
+ fused_softmax/scaled_upper_triang_masked_softmax.dp.cpp
4
+ fused_softmax/scaled_aligned_causal_masked_softmax.dp.cpp
5
+ PROPERTIES
6
+ COMPILE_OPTIONS "-ffast-math")
7
+
8
+ # Compiler options
9
+ set_source_files_properties(fused_softmax/scaled_masked_softmax.dp.cpp
10
+ fused_softmax/scaled_upper_triang_masked_softmax.dp.cpp
11
+ fused_softmax/scaled_aligned_causal_masked_softmax.dp.cpp
12
+ PROPERTIES
13
+ COMPILE_OPTIONS "-ffast-math")
Original file line number Diff line number Diff line change
1
+ # Compiler options
2
+ set_source_files_properties (fused_softmax/scaled_masked_softmax.cu
3
+ fused_softmax/scaled_upper_triang_masked_softmax.cu
4
+ fused_softmax/scaled_aligned_causal_masked_softmax.cu
5
+ PROPERTIES
6
+ COMPILE_OPTIONS "--use_fast_math" )
7
+
8
+ # Compiler options
9
+ set_source_files_properties (fused_softmax/scaled_masked_softmax.cu
10
+ fused_softmax/scaled_upper_triang_masked_softmax.cu
11
+ fused_softmax/scaled_aligned_causal_masked_softmax.cu
12
+ PROPERTIES
13
+ COMPILE_OPTIONS "-use_fast_math" )
Original file line number Diff line number Diff line change 2538
2538
MatchMode : Full
2539
2539
In : cuda
2540
2540
Out : " "
2541
- RuleId : " remove_lib_cuda"
2541
+ RuleId : " remove_lib_cuda"
2542
+
2543
+ - Rule : rule_use_fast_math_one_dash
2544
+ Kind : CMakeRule
2545
+ Priority : Fallback
2546
+ MatchMode : Partial
2547
+ CmakeSyntax : use_fast_math_one_dash
2548
+ In : ${func_name}(${value})
2549
+ Out : ${func_name}(${value})
2550
+ Subrules :
2551
+ value :
2552
+ MatchMode : Full
2553
+ In : -use_fast_math
2554
+ Out : -ffast-math
2555
+
2556
+ - Rule : rule_use_fast_math_two_dash
2557
+ Kind : CMakeRule
2558
+ Priority : Fallback
2559
+ MatchMode : Partial
2560
+ CmakeSyntax : use_fast_math_two_dash
2561
+ In : ${func_name}(${value})
2562
+ Out : ${func_name}(${value})
2563
+ Subrules :
2564
+ value :
2565
+ MatchMode : Full
2566
+ In : --use_fast_math
2567
+ Out : -ffast-math
You can’t perform that action at this time.
0 commit comments