]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
cuda : suppress 'noreturn' warn in no_device_code (llama/8414)
authorDaniel Bevenius <redacted>
Thu, 11 Jul 2024 15:53:42 +0000 (17:53 +0200)
committerGeorgi Gerganov <redacted>
Thu, 8 Aug 2024 19:48:46 +0000 (22:48 +0300)
commit84493d7f3e54adfb3b0269ddfeef17348485e726
tree9d2019e54202bb270378f398a17325d979edd7d3
parent15d71189e92ccf7ac17894d12137f3f364c9c48e
cuda : suppress 'noreturn' warn in no_device_code (llama/8414)

* cuda : suppress 'noreturn' warn in no_device_code

This commit adds a while(true) loop to the no_device_code function in
common.cuh. This is done to suppress the warning:

```console
/src/ggml-cuda/template-instances/../common.cuh:346:1: warning:
function declared 'noreturn' should not return [-Winvalid-noreturn]
  346 | }
      | ^
```

The motivation for this is to reduce the number of warnings when
compilng with GGML_HIPBLAS=ON.

Signed-off-by: Daniel Bevenius <redacted>
* squash! cuda : suppress 'noreturn' warn in no_device_code

Update __trap macro instead of using a while loop to suppress the
warning.

Signed-off-by: Daniel Bevenius <redacted>
---------

Signed-off-by: Daniel Bevenius <redacted>
ggml/src/ggml-cuda/common.cuh