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

add: SIMD Instruction Support for MSVC and GCC/Clang #2823

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

beats-dh
Copy link
Collaborator

Description:

This pull request enhances the CMake configuration to detect and enable SIMD instruction support (AVX512, AVX2, SSE, etc.) across different compilers, including MSVC and GCC/Clang. These changes allow the project to more effectively leverage existing optimized code for these SIMD instructions, ensuring improved performance on supported platforms. Additionally, it resolves build warnings on Linux and ensures compatibility across various architectures, maximizing the use of advanced hardware capabilities.

This comment was marked as outdated.

@@ -207,12 +207,11 @@ class Dispatcher {
}

std::array<std::vector<Task>, static_cast<uint8_t>(TaskGroup::Last)> tasks;
std::vector<std::shared_ptr<Task>> scheduledTasks;
phmap::parallel_flat_hash_set_m<std::shared_ptr<Task>> scheduledTasks;
Copy link
Contributor

@mehah mehah Aug 19, 2024

Choose a reason for hiding this comment

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

Why? this is absurdly slow and the vector already has its own mutex.

The dispatcher is practically the core of the project, any ms will make a big difference, the flash_set only serves to maintain the uniqueness of the elements which is practically non-existent and if it exists the ideal is to find the source of the problem.

Copy link
Contributor

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions bot added the Stale No activity label Sep 18, 2024
@github-actions github-actions bot removed the Stale No activity label Sep 25, 2024
Copy link

sonarcloud bot commented Oct 20, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
17.5% Duplication on New Code (required ≤ 10%)
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

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.

5 participants