-
Notifications
You must be signed in to change notification settings - Fork 225
Add system related parameters to performance related algorithms' parameters #2724
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
03ff287
Initial implementation of system_parameters class
Vika-F a5ee87d
Add a test for system-related parameters
Vika-F 2084a26
1. Fix system_parameters::get_top_enabled_cpu_extension. 2. Derive al…
Vika-F 474604b
clang-format; Add missing includes
Vika-F c3776be
Fix include name in cpu.hpp
Vika-F 51f2649
Return incorrectly deleted include back
Vika-F 9a7eb9b
Fix build error in oneAPI examples
Vika-F 849beb6
Add EOL in the end of the files
Vika-F c936722
Add comments to system_parameters class
Vika-F 1911009
Merge pull request #23 from oneapi-src/main
Vika-F a2fa159
Implement the changes requested in code review
Vika-F 18497e8
clang-format
Vika-F 20f5680
Merge changes from main branch
Vika-F 72ed679
Fix DPC++ tests failures and Coverity failures
Vika-F 81359a7
Add system_parameters related symbols into onedal_parameters libs
Vika-F e38d51e
Fix bazel build
Vika-F 63e5e3d
Merge pull request #24 from oneapi-src/main
Vika-F 511f814
Fix parameters library build in makefile
Vika-F File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
load( | ||
"@onedal//dev/bazel:dal.bzl", | ||
"dal_module", | ||
"dal_test_suite", | ||
) | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
dal_module( | ||
name = "parameters", | ||
auto = True, | ||
dal_deps = [ | ||
"@onedal//cpp/oneapi/dal:common", | ||
] | ||
) |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/******************************************************************************* | ||
* Copyright contributors to the oneDAL project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*******************************************************************************/ | ||
|
||
#include "oneapi/dal/detail/parameters/system_parameters.hpp" | ||
|
||
namespace oneapi::dal { | ||
|
||
namespace detail { | ||
|
||
system_parameters::system_parameters() | ||
: impl_(detail::pimpl<system_parameters_impl>(std::make_unique<system_parameters_impl>())) { | ||
} | ||
|
||
cpu_extension system_parameters::get_top_enabled_cpu_extension() const { | ||
return impl_->get_top_enabled_cpu_extension(); | ||
} | ||
|
||
std::uint32_t system_parameters::get_max_number_of_threads() const { | ||
return impl_->get_max_number_of_threads(); | ||
} | ||
|
||
std::string system_parameters::dump() const { | ||
return impl_->dump(); | ||
} | ||
|
||
#ifdef ONEDAL_DATA_PARALLEL | ||
|
||
std::uint32_t system_parameters::get_max_workgroup_size(sycl::queue& queue) const { | ||
return impl_->get_max_workgroup_size(queue); | ||
} | ||
|
||
std::string system_parameters::dump(sycl::queue& queue) const { | ||
return impl_->dump(queue); | ||
} | ||
|
||
#endif | ||
|
||
} // namespace detail | ||
} // namespace oneapi::dal |
Oops, something went wrong.
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.
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.
Can you pass the typeid of
ti
so that this message is a little more specific? It would be nice to know what the unknown type is