|
27 | 27 | MatchMode: Full |
28 | 28 | RuleId: "remove_cuda" |
29 | 29 |
|
30 | | -- Rule: rule_find_package |
| 30 | +- Rule: rule_cuda_no_args_find_package |
31 | 31 | Kind: CMakeRule |
32 | 32 | Priority: Fallback |
33 | | - CmakeSyntax: find_package |
34 | | - In: find_package(${arg0} REQUIRED) |
| 33 | + CmakeSyntax: cuda_no_args_find_package |
| 34 | + MatchMode: Partial |
| 35 | + In: find_package(CUDA) |
| 36 | + Out: find_package(IntelSYCL) |
| 37 | + |
| 38 | +- Rule: rule_cuda_find_package |
| 39 | + Kind: CMakeRule |
| 40 | + Priority: Fallback |
| 41 | + CmakeSyntax: cuda_find_package |
| 42 | + MatchMode: Partial |
| 43 | + In: find_package(CUDA ${args}) |
35 | 44 | Out: find_package(IntelSYCL REQUIRED) |
36 | 45 |
|
| 46 | +# Current YAML rules comments this line |
| 47 | +# due to lack of equivalent MPI config file in oneAPI |
| 48 | +- Rule: rule_MPI_find_package |
| 49 | + Kind: CMakeRule |
| 50 | + Priority: Fallback |
| 51 | + CmakeSyntax: MPI_find_package |
| 52 | + MatchMode: Partial |
| 53 | + In: find_package(MPI ${args}) |
| 54 | + Out: "#find_package(MPI ${args})" |
| 55 | + |
| 56 | +# Current YAML rules comments this line |
| 57 | +# due to lack of equivalent OMP config file in oneAPI |
| 58 | +- Rule: rule_OMP_find_package |
| 59 | + Kind: CMakeRule |
| 60 | + Priority: Fallback |
| 61 | + CmakeSyntax: OMP_find_package |
| 62 | + MatchMode: Partial |
| 63 | + In: find_package(OpenMP ${args}) |
| 64 | + Out: "#find_package(OpenMP ${args})" |
| 65 | + |
| 66 | +- Rule: rule_CUDNN_find_package |
| 67 | + Kind: CMakeRule |
| 68 | + Priority: Fallback |
| 69 | + CmakeSyntax: CUDNN_find_package |
| 70 | + MatchMode: Partial |
| 71 | + In: find_package(${value}) |
| 72 | + Out: find_package(${value}) |
| 73 | + Subrules: |
| 74 | + value: |
| 75 | + In: CUDNN |
| 76 | + Out: DNNL |
| 77 | + MatchMode: Full |
| 78 | + RuleId: "find pkg CUDNN" |
| 79 | + |
| 80 | +- Rule: rule_cudnn_val_find_package |
| 81 | + Kind: CMakeRule |
| 82 | + Priority: Fallback |
| 83 | + CmakeSyntax: cudnn_val_find_package |
| 84 | + MatchMode: Partial |
| 85 | + In: find_package(${value}) |
| 86 | + Out: find_package(${value}) |
| 87 | + Subrules: |
| 88 | + value: |
| 89 | + In: cudnn |
| 90 | + Out: dnnl |
| 91 | + MatchMode: Full |
| 92 | + RuleId: "find pkg cudnn val" |
| 93 | + |
| 94 | +- Rule: rule_CUB_find_package |
| 95 | + Kind: CMakeRule |
| 96 | + Priority: Fallback |
| 97 | + CmakeSyntax: CUB_find_package |
| 98 | + MatchMode: Partial |
| 99 | + In: find_package(${value}) |
| 100 | + Out: find_package(${value}) |
| 101 | + Subrules: |
| 102 | + value: |
| 103 | + In: CUB |
| 104 | + Out: oneDPL |
| 105 | + MatchMode: Full |
| 106 | + RuleId: "find pkg CUB" |
| 107 | + |
| 108 | +# Current YAML rules comments this line |
| 109 | +# due to lack of equivalent NVJPEG config file in oneAPI |
| 110 | +- Rule: rule_NVJPEG_find_package |
| 111 | + Kind: CMakeRule |
| 112 | + Priority: Fallback |
| 113 | + CmakeSyntax: NVJPEG_find_package |
| 114 | + MatchMode: Partial |
| 115 | + In: find_package(NVJPEG ${args}) |
| 116 | + Out: "#find_package(NVJPEG ${args})" |
| 117 | + |
| 118 | +- Rule: rule_CUDAToolkit_find_package |
| 119 | + Kind: CMakeRule |
| 120 | + Priority: Fallback |
| 121 | + CmakeSyntax: CUDAToolkit_find_package |
| 122 | + MatchMode: Partial |
| 123 | + In: find_package(CUDAToolkit REQUIRED ${args}) |
| 124 | + Out: dpct_find_package(${args}) |
| 125 | + |
37 | 126 | - Rule: rule_set |
38 | 127 | Kind: CMakeRule |
39 | 128 | Priority: Fallback |
|
138 | 227 | In: ${arg}.cu |
139 | 228 | Out: ${arg}.dp.cpp |
140 | 229 |
|
| 230 | +- Rule: rule_cuda_add_cufft_to_target |
| 231 | + Kind: CMakeRule |
| 232 | + Priority: Fallback |
| 233 | + CmakeSyntax: cuda_add_cufft_to_target |
| 234 | + MatchMode: Partial |
| 235 | + In: cuda_add_cufft_to_target(${value}) |
| 236 | + Out: dpct_add_mkl_to_target(${value}) |
| 237 | + |
0 commit comments