Skip to content

Commit

Permalink
fix hip build
Browse files Browse the repository at this point in the history
  • Loading branch information
slaren committed Dec 23, 2023
1 parent 110b505 commit 6f1d5d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ggml-cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -6683,9 +6683,9 @@ static void * ggml_cuda_pool_malloc_vmm(size_t size, size_t * actual_size) {
g_cuda_pool_handles[id].push_back(handle);
g_cuda_pool_size[id] += reserve_size;

//printf("cuda pool[%d]: size increased to %llu MB (reserved %llu MB)\n",
// id, (unsigned long long) (g_cuda_pool_size[id]/1024/1024),
// (unsigned long long) (reserve_size/1024/1024));
printf("cuda pool[%d]: size increased to %llu MB (reserved %llu MB)\n",
id, (unsigned long long) (g_cuda_pool_size[id]/1024/1024),
(unsigned long long) (reserve_size/1024/1024));
}

GGML_ASSERT(g_cuda_pool_addr[id] != 0);
Expand Down Expand Up @@ -6835,7 +6835,7 @@ void ggml_init_cublas() {
g_tensor_split[id] = total_vram;
total_vram += prop.totalGlobalMem;
#if defined(GGML_USE_HIPBLAS) && defined(__HIP_PLATFORM_AMD__)
g_device_caps[id] = 100*prop.major + 10*prop.minor + CC_OFFSET_AMD;
g_device_caps[id].cc = 100*prop.major + 10*prop.minor + CC_OFFSET_AMD;
#else
g_device_caps[id].cc = 100*prop.major + 10*prop.minor;
#endif // defined(GGML_USE_HIPBLAS) && defined(__HIP_PLATFORM_AMD__)
Expand Down

0 comments on commit 6f1d5d2

Please sign in to comment.