Skip to content

Commit 070cbcc

Browse files
committed
occupanct function
1 parent a3296d5 commit 070cbcc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ggml-cuda.cu

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
#define cublasStatus_t hipblasStatus_t
2727
#define cudaDeviceSynchronize hipDeviceSynchronize
2828
#define cudaError_t hipError_t
29+
#define cudaEvent_t hipEvent_t
2930
#define cudaEventCreateWithFlags hipEventCreateWithFlags
3031
#define cudaEventDisableTiming hipEventDisableTiming
3132
#define cudaEventRecord hipEventRecord
32-
#define cudaEvent_t hipEvent_t
3333
#define cudaFree hipFree
3434
#define cudaFreeHost hipHostFree
3535
#define cudaGetErrorString hipGetErrorString
@@ -40,11 +40,12 @@
4040
#define cudaMemcpyAsync hipMemcpyAsync
4141
#define cudaMemcpyDeviceToHost hipMemcpyDeviceToHost
4242
#define cudaMemcpyHostToDevice hipMemcpyHostToDevice
43+
#define cudaOccupancyMaxPotentialBlockSize hipOccupancyMaxPotentialBlockSize
44+
#define cudaStream_t hipStream_t
4345
#define cudaStreamCreateWithFlags hipStreamCreateWithFlags
4446
#define cudaStreamNonBlocking hipStreamNonBlocking
4547
#define cudaStreamSynchronize hipStreamSynchronize
4648
#define cudaStreamWaitEvent hipStreamWaitEvent
47-
#define cudaStream_t hipStream_t
4849
#define cudaSuccess hipSuccess
4950
#else
5051
#include <cuda_runtime.h>

0 commit comments

Comments
 (0)