Skip to content

Commit 18df024

Browse files
Changed CUTENSOR to CUTensor in all the places
1 parent 3090feb commit 18df024

10 files changed

Lines changed: 16 additions & 16 deletions

clang/lib/DPCT/ASTTraversal.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "RulesSHMEM/NVSHMEMAPIMigration.h"
2828
#include "RulesSecurity/Homoglyph.h"
2929
#include "RulesSecurity/MisleadingBidirectional.h"
30-
#include "RulesTensor/CUTENSORAPIMigration.h"
30+
#include "RulesTensor/CUTensorAPIMigration.h"
3131
#include "TextModification.h"
3232
#include "Utility.h"
3333

@@ -198,7 +198,7 @@ REGISTER_RULE(CuDNNAPIRule, PassKind::PK_Migration, RuleGroupKind::RK_DNN)
198198

199199
REGISTER_RULE(NVSHMEMRule, PassKind::PK_Migration, RuleGroupKind::RK_NVSHMEM)
200200

201-
REGISTER_RULE(CUTensorRule, PassKind::PK_Migration, RuleGroupKind::RK_CUTENSOR)
201+
REGISTER_RULE(CUTensorRule, PassKind::PK_Migration, RuleGroupKind::RK_CUTensor)
202202

203203
} // namespace dpct
204204
} // namespace clang

clang/lib/DPCT/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ add_clang_library(DPCT
203203
RulesLang/CallExprRewriterCG.cpp
204204
RulesLang/CallExprRewriterWmma.cpp
205205
RulesSHMEM/CallExprRewriterNvshmem.cpp
206-
RulesTensor/CallExprRewriterCUTENSOR.cpp
206+
RulesTensor/CallExprRewriterCUTensor.cpp
207207
ErrorHandle/CrashRecovery.cpp
208208
Diagnostics/Diagnostics.cpp
209209
ErrorHandle/Error.cpp
@@ -243,7 +243,7 @@ add_clang_library(DPCT
243243
RulesCCL/NCCLAPIMigration.cpp
244244
RuleInfra/TypeLocRewriters.cpp
245245
RulesSHMEM/NVSHMEMAPIMigration.cpp
246-
RulesTensor/CUTENSORAPIMigration.cpp
246+
RulesTensor/CUTensorAPIMigration.cpp
247247
Linux/AutoComplete.cpp
248248
RulesAsm/AsmMigration.cpp
249249
QueryAPIMapping/QueryAPIMapping.cpp

clang/lib/DPCT/RuleInfra/CallExprRewriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void CallExprRewriterFactoryBase::initRewriterMap() {
164164
initRewriterMapMisc();
165165
initRewriterMapNccl();
166166
initRewriterMapNvshmem();
167-
initRewriterMapCUTENSOR();
167+
initRewriterMapCUTensor();
168168
initRewriterMapStream();
169169
initRewriterMapTexture();
170170
initRewriterMapThrust();

clang/lib/DPCT/RuleInfra/CallExprRewriter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class CallExprRewriterFactoryBase {
7070
static void initRewriterMapMisc();
7171
static void initRewriterMapNccl();
7272
static void initRewriterMapNvshmem();
73-
static void initRewriterMapCUTENSOR();
73+
static void initRewriterMapCUTensor();
7474
static void initRewriterMapStream();
7575
static void initRewriterMapTexture();
7676
static void initRewriterMapThrust();

clang/lib/DPCT/RulesInclude/InclusionHeaders.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ enum class RuleGroupKind : uint8_t {
3636
RK_CUB,
3737
RK_WMMA,
3838
RK_NVSHMEM,
39-
RK_CUTENSOR,
39+
RK_CUTensor,
4040
NUM
4141
};
4242

clang/lib/DPCT/RulesInclude/InclusionHeaders.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,5 @@ REGIST_INCLUSION("nvshmem.h", FullMatch, NVSHMEM, Replace, false,
113113
REGIST_INCLUSION("nvshmemx.h", FullMatch, NVSHMEM, Replace, false,
114114
HeaderType::HT_SHMEMX)
115115

116-
REGIST_INCLUSION("cutensor.h", FullMatch, CUTENSOR, Remove, true)
117-
REGIST_INCLUSION("cutensorMg.h", FullMatch, CUTENSOR, Remove, true)
116+
REGIST_INCLUSION("cutensor.h", FullMatch, CUTensor, Remove, true)
117+
REGIST_INCLUSION("cutensorMg.h", FullMatch, CUTensor, Remove, true)

clang/lib/DPCT/RulesTensor/APINamesCUTENSOR.inc renamed to clang/lib/DPCT/RulesTensor/APINamesCUTensor.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===------------------------ APINamesCUTENSOR.inc ------------------------===//
1+
//===------------------------ APINamesCUTensor.inc ------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

clang/lib/DPCT/RulesTensor/CUTENSORAPIMigration.cpp renamed to clang/lib/DPCT/RulesTensor/CUTensorAPIMigration.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
//===---------------------- CUTENSORAPIMigration.cpp ----------------------===//
1+
//===---------------------- CUTensorAPIMigration.cpp ----------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===-----------------------------------------------------------------------===//
88

9-
#include "CUTENSORAPIMigration.h"
9+
#include "CUTensorAPIMigration.h"
1010
#include "RuleInfra/ExprAnalysis.h"
1111

1212
using namespace clang::dpct;

clang/lib/DPCT/RulesTensor/CUTENSORAPIMigration.h renamed to clang/lib/DPCT/RulesTensor/CUTensorAPIMigration.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===----------------------- CUTENSORAPIMigration.h -----------------------===//
1+
//===----------------------- CUTensorAPIMigration.h -----------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

clang/lib/DPCT/RulesTensor/CallExprRewriterCUTENSOR.cpp renamed to clang/lib/DPCT/RulesTensor/CallExprRewriterCUTensor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-------------------- CallExprRewriterCUTENSOR.cpp --------------------===//
1+
//===-------------------- CallExprRewriterCUTensor.cpp --------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -21,11 +21,11 @@ namespace dpct {
2121
#define ENTRY_UNSUPPORTED(SOURCEAPINAME, MSGID) \
2222
UNSUPPORTED_FACTORY_ENTRY(SOURCEAPINAME, MSGID)
2323

24-
void CallExprRewriterFactoryBase::initRewriterMapCUTENSOR() {
24+
void CallExprRewriterFactoryBase::initRewriterMapCUTensor() {
2525
RewriterMap->merge(
2626
std::unordered_map<std::string,
2727
std::shared_ptr<CallExprRewriterFactoryBase>>({
28-
#include "APINamesCUTENSOR.inc"
28+
#include "APINamesCUTensor.inc"
2929
}));
3030
}
3131

0 commit comments

Comments
 (0)