Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b744ec4

Browse files
committed
[HIPIFY] Remove duplicates
+ C++ maps and docs affected, hipify-perl left unchanged
1 parent 87651cf commit b744ec4

5 files changed

Lines changed: 1 addition & 30 deletions

docs/markdown/CUDA_Runtime_API_functions_supported_by_HIP.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,6 @@
440440
| `cudaMemcpyFromSymbolAsync` | |
441441
| `cudaMemcpyToSymbol` | |
442442
| `cudaMemcpyToSymbolAsync` | |
443-
| `cudaOccupancyMaxActiveBlocksPerMultiprocessor` |`hipOccupancyMaxActiveBlocksPerMultiprocessor` |
444-
| `cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags` |`hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags`|
445443
| `cudaOccupancyMaxPotentialBlockSize` |`hipOccupancyMaxPotentialBlockSize` |
446444
| `cudaOccupancyMaxPotentialBlockSizeWithFlags` | |
447445
| `cudaOccupancyMaxPotentialBlockSizeVariableSMem` | |
@@ -484,7 +482,6 @@
484482
| struct |`cudaTextureDesc` | |`hipTextureDesc` |
485483
| struct |`textureReference` | |`textureReference` |
486484
| struct |`surfaceReference` | | |
487-
| struct |`CUuuid_st` | | |
488485
| enum |***`cudaCGScope`*** | 9.0 | |
489486
| 0 |*`cudaCGScopeInvalid`* | 9.0 | |
490487
| 1 |*`cudaCGScopeGrid`* | 9.0 | |
@@ -974,7 +971,6 @@
974971
| typedef |`cudaArray_const_t` | |`hipArray_const_t` |
975972
| typedef |`cudaEvent_t` | |`hipEvent_t` |
976973
| struct |`CUevent_st` | |`ihipEvent_t` |
977-
| typedef |`cudaGraphicsResource_t` | | |
978974
| struct |`cudaMipmappedArray` | |`hipMipmappedArray` |
979975
| typedef |`cudaMipmappedArray_t` | |`hipMipmappedArray_t` |
980976
| typedef |`cudaMipmappedArray_const_t` | |`hipMipmappedArray_const_t` |

docs/markdown/CURAND_API_supported_by_HIP.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,6 @@
5454
| uint | `curandDirectionVectors64_t` | | |
5555
| struct | `curandGenerator_st` | | `hiprandGenerator_st` |
5656
| struct* | `curandGenerator_t` | | `hiprandGenerator_t` |
57-
| enum |***`curandOrdering`*** | | |
58-
| enum |***`curandOrdering_t`*** | | |
59-
| 100 |*`CURAND_ORDERING_PSEUDO_BEST`* | | |
60-
| 101 |*`CURAND_ORDERING_PSEUDO_DEFAULT`* | | |
61-
| 102 |*`CURAND_ORDERING_PSEUDO_SEEDED`* | | |
62-
| 201 |*`CURAND_ORDERING_QUASI_DEFAULT`* | | |
63-
| enum |***`curandDirectionVectorSet`*** | | |
64-
| enum |***`curandDirectionVectorSet_t`*** | | |
65-
| 101 |*`CURAND_DIRECTION_VECTORS_32_JOEKUO6`* | | |
66-
| 102 |*`CURAND_SCRAMBLED_DIRECTION_VECTORS_32_JOEKUO6`* | | |
67-
| 103 |*`CURAND_DIRECTION_VECTORS_64_JOEKUO6`* | | |
68-
| 104 |*`CURAND_SCRAMBLED_DIRECTION_VECTORS_64_JOEKUO6`* | | |
69-
| uint | `curandDirectionVectors32_t` | | `hiprandDirectionVectors32_t` |
70-
| uint | `curandDirectionVectors64_t` | | |
7157
| double | `curandDistribution_st` | | |
7258
| double | `curandHistogramM2V_st` | | |
7359
| double* | `curandDistribution_t` | | |

hipify-clang/src/CUDA2HIP_BLAS_API_functions.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,12 +333,6 @@ const std::map<llvm::StringRef, hipCounter> CUDA_BLAS_FUNCTION_MAP{
333333
{"cublasCtrsm", {"hipblasCtrsm", "", CONV_LIB_FUNC, API_BLAS, UNSUPPORTED}},
334334
{"cublasZtrsm", {"hipblasZtrsm", "", CONV_LIB_FUNC, API_BLAS, UNSUPPORTED}},
335335

336-
// TRSM - Batched Triangular Solver
337-
{"cublasStrsmBatched", {"hipblasStrsmBatched", "", CONV_LIB_FUNC, API_BLAS, UNSUPPORTED}},
338-
{"cublasDtrsmBatched", {"hipblasDtrsmBatched", "", CONV_LIB_FUNC, API_BLAS, UNSUPPORTED}},
339-
{"cublasCtrsmBatched", {"hipblasCtrsmBatched", "", CONV_LIB_FUNC, API_BLAS, UNSUPPORTED}},
340-
{"cublasZtrsmBatched", {"hipblasZtrsmBatched", "", CONV_LIB_FUNC, API_BLAS, UNSUPPORTED}},
341-
342336
// TRMM
343337
{"cublasStrmm", {"hipblasStrmm", "", CONV_LIB_FUNC, API_BLAS, UNSUPPORTED}},
344338
{"cublasDtrmm", {"hipblasDtrmm", "", CONV_LIB_FUNC, API_BLAS, UNSUPPORTED}},

hipify-clang/src/CUDA2HIP_Device_functions.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ const std::map<llvm::StringRef, hipCounter> CUDA_DEVICE_FUNC_MAP{
354354
{"__vabsss2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}},
355355
{"__vadd2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}},
356356
{"__vaddss2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}},
357-
{"__vaddss2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}},
358357
{"__vaddus2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}},
359358
{"__vavgs2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}},
360359
{"__vavgu2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME, UNSUPPORTED}},
@@ -514,21 +513,18 @@ const std::map<llvm::StringRef, hipCounter> CUDA_DEVICE_FUNC_MAP{
514513
{"__short_as_half", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
515514
{"__ushort_as_half", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
516515
{"__ldg", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
517-
{"__ldg", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
518516
{"__ldcg", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
519517
{"__ldca", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
520518
{"__ldcs", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
521519
{"__heq2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
522520
{"__hne2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
523521
{"__hle2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
524522
{"__hge2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
525-
{"__hge2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
526523
{"__hlt2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
527524
{"__hgt2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
528525
{"__hequ2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
529526
{"__hneu2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
530527
{"__hleu2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
531-
{"__hleu2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
532528
{"__hgeu2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
533529
{"__hltu2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
534530
{"__hgtu2", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
@@ -611,7 +607,6 @@ const std::map<llvm::StringRef, hipCounter> CUDA_DEVICE_FUNC_MAP{
611607
{"atomicMax", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
612608
{"atomicInc", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
613609
{"atomicDec", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
614-
{"atomicDec", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
615610
{"atomicAnd", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
616611
{"atomicOr", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},
617612
{"atomicXor", {"", "", CONV_DEVICE_FUNC, API_RUNTIME}},

hipify-clang/src/CUDA2HIP_SPARSE_API_functions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ const std::map<llvm::StringRef, hipCounter> CUDA_SPARSE_FUNCTION_MAP{
581581

582582
{"cusparseScsr2csr_compress", {"hipsparseScsr2csr_compress", "", CONV_LIB_FUNC, API_SPARSE, HIP_UNSUPPORTED}},
583583
{"cusparseDcsr2csr_compress", {"hipsparseDcsr2csr_compress", "", CONV_LIB_FUNC, API_SPARSE, HIP_UNSUPPORTED}},
584-
{"cusparseDcsr2csr_compress", {"hipsparseDcsr2csr_compress", "", CONV_LIB_FUNC, API_SPARSE, HIP_UNSUPPORTED}},
584+
{"cusparseCcsr2csr_compress", {"hipsparseCcsr2csr_compress", "", CONV_LIB_FUNC, API_SPARSE, HIP_UNSUPPORTED}},
585585
{"cusparseZcsr2csr_compress", {"hipsparseZcsr2csr_compress", "", CONV_LIB_FUNC, API_SPARSE, HIP_UNSUPPORTED}},
586586

587587
{"cusparseScsr2hyb", {"hipsparseScsr2hyb", "", CONV_LIB_FUNC, API_SPARSE}},

0 commit comments

Comments
 (0)