-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vulkan: fix build for GGML_VULKAN_RUN_TESTS, add TFLOPS to logging #961
Conversation
Ping for review. I'm curious, is it better to do these sort of fixes in llama.cpp or in ggml? |
Sorry for the delay. Pinging @0cc4m as they are the main maintainer of the vulkan backend.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from that copyright note, I think this is fine.
src/ggml-vulkan.cpp
Outdated
@@ -1,3 +1,6 @@ | |||
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | |||
// SPDX-License-Identifier: MIT | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this note? I don't think this is appropriate. If we put a copyright note here, it'd have to mention others before Nvidia.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's company policy to add a copyright notice in files that are modified. I'm happy to add other notes here as well, maybe Copyright (c) 2023-2024 The ggml authors
like is in some other files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm the main author of this file, but many people have contributed. Should we mention them all? The more significant ones? Or just a group?
@ggerganov Do you have an opinion here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ggerganov Do you have an opinion here?
I don't really understand the necessity for adding these SPDX identifiers in the source files. The copyright and license of the project is already specified in the LICENSE file, so these identifiers are IMO pointless.
Should we mention them all? The more significant ones? Or just a group?
We definitely don't want to maintain redundant copyright notices and license identifiers in the source files. There is commit history already available which provides all that information in greater detail. Any entity that wants to claim copyright should be added to the AUTHORS list - this is the main purpose for the file to exist and it's much easier to maintain.
IMO the simplest solution is to remove the identifiers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I think the AUTHORS file will suffice. I've regenerated that file and removed the copyright comments.
3692020
to
1c1d4dc
Compare
GGML_VULKAN_RUN_TESTS currently has build errors like:
and runtime assertions like:
Fix these, and also add teraflops calculation to the matmul tests.