-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
ggml : remove ggml_task_type and GGML_PERF #8017
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
the
ggml
changes relating to the ggml tensor library for machine learning
label
Jun 19, 2024
mofosyne
added
the
Review Complexity : Medium
Generally require more time to grok but manageable by beginner to medium expertise level
label
Jun 19, 2024
slaren
force-pushed
the
sl/remove-task-type
branch
from
June 20, 2024 01:11
485df9a
to
486d061
Compare
ggerganov
approved these changes
Jun 20, 2024
if (!inplace) { | ||
if (ith == 0) { | ||
// memcpy needs to be synchronized across threads to avoid race conditions. | ||
// => do it in INIT phase |
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.
The comment about INIT phase is no longer relevant
The vulkan build is failing because it has some old code that still has references to |
slaren
force-pushed
the
sl/remove-task-type
branch
from
June 23, 2024 17:30
1a119aa
to
61b96a5
Compare
27 tasks
Nexesenex
added a commit
to Nexesenex/croco.cpp
that referenced
this pull request
Jun 26, 2024
This reverts commit 95f57bb.
arthw
pushed a commit
to arthw/llama.cpp
that referenced
this pull request
Jun 30, 2024
* ggml : remove ggml_task_type and GGML_PERF * check abort_callback on main thread only * vulkan : remove usage of ggml_compute_params * remove LLAMA_PERF
MagnusS0
pushed a commit
to MagnusS0/llama.cpp-normistral-tokenizer
that referenced
this pull request
Jul 1, 2024
* ggml : remove ggml_task_type and GGML_PERF * check abort_callback on main thread only * vulkan : remove usage of ggml_compute_params * remove LLAMA_PERF
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
build
Compilation issues
ggml
changes relating to the ggml tensor library for machine learning
Review Complexity : Medium
Generally require more time to grok but manageable by beginner to medium expertise level
Vulkan
Issues specific to the Vulkan backend
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Removes the phases in
ggml_task_type
in favor of a single phase that operations can split into any number of phases by using barriers.Since the barriers require all threads to pass the barrier, operations are always called with the maximum number of threads, and they are responsible of skipping the excess threads if the implementation cannot use them.
Additionally, parallelizes the conversion of
src1
tovec_dot_type
inmul_mat
andmul_mat_id
. Since the threads are available regardless, there is no reason to not use them.Removes the
GGML_PERF
option and its related fields inggml_tensor
and other structs.