Skip to content

Commit

Permalink
use ava_unsupported
Browse files Browse the repository at this point in the history
Signed-off-by: Zhiting Zhu <[email protected]>
  • Loading branch information
photoszzt committed Jun 25, 2021
1 parent 32a3bd5 commit b27a25a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions cava/samples/pytorch/pt_dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1316,14 +1316,12 @@ cublasStatus_t CUBLASWINAPI cublasGetVector(int n, int elemSize, const void *x,

cublasStatus_t CUBLASWINAPI cublasSetVectorAsync(int n, int elemSize, const void *hostPtr, int incx, void *devicePtr,
int incy, cudaStream_t stream) {
fprintf(stderr, "%s is not implemented\n", __func__);
abort();
ava_unsupported;
}

cublasStatus_t CUBLASWINAPI cublasGetVectorAsync(int n, int elemSize, const void *devicePtr, int incx, void *hostPtr,
int incy, cudaStream_t stream) {
fprintf(stderr, "%s is not implemented\n", __func__);
abort();
ava_unsupported;
}

CUBLASAPI cublasStatus_t CUBLASWINAPI cublasGetMathMode(cublasHandle_t handle, cublasMath_t *mode) { ava_unsupported; }
Expand Down Expand Up @@ -11342,6 +11340,5 @@ __host__ cudaError_t CUDARTAPI cudaProfilerStop(void);
__host__ cudaError_t CUDARTAPI cudaThreadSynchronize(void) {}

__host__ cudaError_t CUDARTAPI cudaGetExportTable(const void **ppExportTable, const cudaUUID_t *pExportTableId) {
fprintf(stderr, "%s is not implemented\n", __func__);
abort();
ava_unsupported;
}
9 changes: 3 additions & 6 deletions cava/samples/pytorch/pt_opt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1749,14 +1749,12 @@ cublasStatus_t CUBLASWINAPI cublasGetVector(int n, int elemSize, const void *x,

cublasStatus_t CUBLASWINAPI cublasSetVectorAsync(int n, int elemSize, const void *hostPtr, int incx, void *devicePtr,
int incy, cudaStream_t stream) {
fprintf(stderr, "%s is not implemented\n", __func__);
abort();
ava_unsupported;
}

cublasStatus_t CUBLASWINAPI cublasGetVectorAsync(int n, int elemSize, const void *devicePtr, int incx, void *hostPtr,
int incy, cudaStream_t stream) {
fprintf(stderr, "%s is not implemented\n", __func__);
abort();
ava_unsupported;
}

CUBLASAPI cublasStatus_t CUBLASWINAPI cublasGetMathMode(cublasHandle_t handle, cublasMath_t *mode) { ava_unsupported; }
Expand Down Expand Up @@ -11871,8 +11869,7 @@ __host__ cudaError_t CUDARTAPI cudaProfilerStop(void);
__host__ cudaError_t CUDARTAPI cudaThreadSynchronize(void) {}

__host__ cudaError_t CUDARTAPI cudaGetExportTable(const void **ppExportTable, const cudaUUID_t *pExportTableId) {
fprintf(stderr, "%s is not implemented\n", __func__);
abort();
ava_unsupported;
}

ava_begin_replacement;
Expand Down

0 comments on commit b27a25a

Please sign in to comment.