summaryrefslogtreecommitdiff
path: root/examples/common.cpp
diff options
context:
space:
mode:
authorJohannes Gäßler <johannesg@5d6.de>2023-05-08 02:42:01 +0200
committerGitHub <noreply@github.com>2023-05-08 02:42:01 +0200
commit1f48b0abcfbd6cc99571e42348e0ec97e4be8b93 (patch)
tree615e8273f6788fdfea285859bab63981c030c742 /examples/common.cpp
parente1295513a48ae8254d8af5ec0250b56d6eaffefd (diff)
Documented CUDA reproducibility, added warning (#1346)
Diffstat (limited to 'examples/common.cpp')
-rw-r--r--examples/common.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/common.cpp b/examples/common.cpp
index 97eded6e..f1c3bae1 100644
--- a/examples/common.cpp
+++ b/examples/common.cpp
@@ -100,6 +100,9 @@ bool gpt_params_parse(int argc, char ** argv, gpt_params & params) {
arg = argv[i];
if (arg == "-s" || arg == "--seed") {
+#if defined(GGML_USE_CUBLAS)
+ fprintf(stderr, "WARNING: when using cuBLAS generation results are NOT guaranteed to be reproducible.\n");
+#endif
if (++i >= argc) {
invalid_param = true;
break;