Skip to content
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

[TransferEngine] Suppress gtest type cast compile warning and fix some trivial bugs #115

Merged
merged 1 commit into from
Feb 23, 2025

Conversation

yuan-luo
Copy link
Contributor

Suppress gtest compile warning and fix some trivial bugs.

@yuan-luo yuan-luo changed the title Suppress gtest type cast compile warning and fix some trivial bugs [TransferEngine] Suppress gtest type cast compile warning and fix some trivial bugs Feb 21, 2025
@@ -53,7 +53,7 @@ static inline int bindToSocket(int socket_id) {
struct bitmask *cpu_list = numa_allocate_cpumask();
numa_node_to_cpus(socket_id, cpu_list);
int nr_cpus = 0;
for (int cpu = 0; cpu < numa_num_possible_cpus(); ++cpu) {
for (int cpu = 0; cpu < num_nodes; ++cpu) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not changed. num_node means the number of NUMA nodes, not the number of cores (numa_num_possible_cpus()). For example, a machine with 2 48-core CPUs, numa_num_possible_cpus()==96 and num_node==2.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@alogfans
Copy link
Collaborator

LGTM

@doujiang24 doujiang24 merged commit 236aaef into kvcache-ai:main Feb 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants