Skip to content

Commit 6d4d0b5

Browse files
committed
cuda : fix HIPBLAS build
1 parent f96e1c5 commit 6d4d0b5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

extra/sync-ggml.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
22

33
cp -rpv ../ggml/src/ggml.c ./ggml.c
4+
cp -rpv ../ggml/src/ggml-impl.h ./ggml-impl.h
45
cp -rpv ../ggml/src/ggml-alloc.c ./ggml-alloc.c
56
cp -rpv ../ggml/src/ggml-backend-impl.h ./ggml-backend-impl.h
67
cp -rpv ../ggml/src/ggml-backend.c ./ggml-backend.c
78
cp -rpv ../ggml/src/ggml-cuda.cu ./ggml-cuda.cu
89
cp -rpv ../ggml/src/ggml-cuda.h ./ggml-cuda.h
9-
cp -rpv ../ggml/src/ggml-impl.h ./ggml-impl.h
1010
cp -rpv ../ggml/src/ggml-metal.h ./ggml-metal.h
1111
cp -rpv ../ggml/src/ggml-metal.m ./ggml-metal.m
1212
cp -rpv ../ggml/src/ggml-metal.metal ./ggml-metal.metal

ggml-cuda.cu

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#define cudaDeviceCanAccessPeer hipDeviceCanAccessPeer
4040
#define cudaDeviceDisablePeerAccess hipDeviceDisablePeerAccess
4141
#define cudaDeviceEnablePeerAccess hipDeviceEnablePeerAccess
42+
#define cudaDeviceGetMemPool hipDeviceGetMemPool
4243
#define cudaDeviceProp hipDeviceProp_t
4344
#define cudaDeviceSynchronize hipDeviceSynchronize
4445
#define cudaError_t hipError_t
@@ -48,13 +49,15 @@
4849
#define cudaEvent_t hipEvent_t
4950
#define cudaEventDestroy hipEventDestroy
5051
#define cudaFree hipFree
52+
#define cudaFreeAsync hipFreeAsync
5153
#define cudaFreeHost hipHostFree
5254
#define cudaGetDevice hipGetDevice
5355
#define cudaGetDeviceCount hipGetDeviceCount
5456
#define cudaGetDeviceProperties hipGetDeviceProperties
5557
#define cudaGetErrorString hipGetErrorString
5658
#define cudaGetLastError hipGetLastError
5759
#define cudaMalloc hipMalloc
60+
#define cudaMallocFromPoolAsync hipMallocFromPoolAsync
5861
#define cudaMallocHost(ptr, size) hipHostMalloc(ptr, size, hipHostMallocDefault)
5962
#define cudaMemcpy hipMemcpy
6063
#define cudaMemcpy2DAsync hipMemcpy2DAsync
@@ -63,6 +66,9 @@
6366
#define cudaMemcpyDeviceToHost hipMemcpyDeviceToHost
6467
#define cudaMemcpyHostToDevice hipMemcpyHostToDevice
6568
#define cudaMemcpyKind hipMemcpyKind
69+
#define cudaMemPool_t hipMemPool_t
70+
#define cudaMemPoolAttrReleaseThreshold hipMemPoolAttrReleaseThreshold
71+
#define cudaMemPoolSetAttribute hipMemPoolSetAttribute
6672
#define cudaMemset hipMemset
6773
#define cudaMemsetAsync hipMemsetAsync
6874
#define cudaOccupancyMaxPotentialBlockSize hipOccupancyMaxPotentialBlockSize

0 commit comments

Comments
 (0)