-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #680 from emankov/HIPIFY
[HIPIFY][#584][DNN][MIOpen] cuDNN -> MIOpen - Part 1
- Loading branch information
Showing
4 changed files
with
48 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// RUN: %run_test hipify "%s" "%t" %hipify_args 3 --skip-excluded-preprocessor-conditional-blocks --experimental -roc %clang_args -D__CUDA_API_VERSION_INTERNAL | ||
|
||
// CHECK: #include <hip/hip_runtime.h> | ||
#include <cuda_runtime.h> | ||
#include <stdio.h> | ||
// CHECK: #include "miopen/miopen.h" | ||
#include "cudnn.h" | ||
|
||
int main() { | ||
printf("15. cuDNN API to MIOpen API synthetic test\n"); | ||
|
||
// CHECK: miopenStatus_t dnnStatus_t; | ||
// CHECK-NEXT: miopenStatus_t STATUS_SUCCESS = miopenStatusSuccess; | ||
// CHECK-NEXT: miopenStatus_t STATUS_NOT_INITIALIZED = miopenStatusNotInitialized; | ||
// CHECK-NEXT: miopenStatus_t STATUS_ALLOC_FAILED = miopenStatusAllocFailed; | ||
// CHECK-NEXT: miopenStatus_t STATUS_BAD_PARAM = miopenStatusBadParm; | ||
// CHECK-NEXT: miopenStatus_t STATUS_INTERNAL_ERROR = miopenStatusInternalError; | ||
// CHECK-NEXT: miopenStatus_t STATUS_INVALID_VALUE = miopenStatusInvalidValue; | ||
// CHECK-NEXT: miopenStatus_t STATUS_NOT_SUPPORTED = miopenStatusUnsupportedOp; | ||
cudnnStatus_t dnnStatus_t; | ||
cudnnStatus_t STATUS_SUCCESS = CUDNN_STATUS_SUCCESS; | ||
cudnnStatus_t STATUS_NOT_INITIALIZED = CUDNN_STATUS_NOT_INITIALIZED; | ||
cudnnStatus_t STATUS_ALLOC_FAILED = CUDNN_STATUS_ALLOC_FAILED; | ||
cudnnStatus_t STATUS_BAD_PARAM = CUDNN_STATUS_BAD_PARAM; | ||
cudnnStatus_t STATUS_INTERNAL_ERROR = CUDNN_STATUS_INTERNAL_ERROR; | ||
cudnnStatus_t STATUS_INVALID_VALUE = CUDNN_STATUS_INVALID_VALUE; | ||
cudnnStatus_t STATUS_NOT_SUPPORTED = CUDNN_STATUS_NOT_SUPPORTED; | ||
|
||
return 0; | ||
} |