mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 10:54:36 +00:00
added missing CUDA_CHECKs
This commit is contained in:
parent
df4719ec7e
commit
c3d4ead136
@ -2440,12 +2440,11 @@ GGML_CALL static enum ggml_status ggml_backend_cuda_graph_compute(ggml_backend_t
|
||||
// kernel parameters which need updated in the graph for each token
|
||||
void* ggmlCudaCpyFn = nullptr;
|
||||
|
||||
|
||||
if(cudaGraph.count==0){
|
||||
cudaDeviceProp prop;
|
||||
int device;
|
||||
cudaGetDevice(&device);
|
||||
cudaGetDeviceProperties(&prop, device);
|
||||
CUDA_CHECK(cudaGetDevice(&device));
|
||||
CUDA_CHECK(cudaGetDeviceProperties(&prop, device));
|
||||
if (prop.major < 8){
|
||||
cudaGraph.disableDueToGpuArch=true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user