From 070cbcc1bd7f1b5049feec43507a320d22aac815 Mon Sep 17 00:00:00 2001 From: Henri Vasserman Date: Sun, 7 May 2023 18:10:56 +0300 Subject: [PATCH] occupanct function --- ggml-cuda.cu | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ggml-cuda.cu b/ggml-cuda.cu index 7760f0de133a5..1b862fe82dff2 100644 --- a/ggml-cuda.cu +++ b/ggml-cuda.cu @@ -26,10 +26,10 @@ #define cublasStatus_t hipblasStatus_t #define cudaDeviceSynchronize hipDeviceSynchronize #define cudaError_t hipError_t +#define cudaEvent_t hipEvent_t #define cudaEventCreateWithFlags hipEventCreateWithFlags #define cudaEventDisableTiming hipEventDisableTiming #define cudaEventRecord hipEventRecord -#define cudaEvent_t hipEvent_t #define cudaFree hipFree #define cudaFreeHost hipHostFree #define cudaGetErrorString hipGetErrorString @@ -40,11 +40,12 @@ #define cudaMemcpyAsync hipMemcpyAsync #define cudaMemcpyDeviceToHost hipMemcpyDeviceToHost #define cudaMemcpyHostToDevice hipMemcpyHostToDevice +#define cudaOccupancyMaxPotentialBlockSize hipOccupancyMaxPotentialBlockSize +#define cudaStream_t hipStream_t #define cudaStreamCreateWithFlags hipStreamCreateWithFlags #define cudaStreamNonBlocking hipStreamNonBlocking #define cudaStreamSynchronize hipStreamSynchronize #define cudaStreamWaitEvent hipStreamWaitEvent -#define cudaStream_t hipStream_t #define cudaSuccess hipSuccess #else #include