-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'kokkos:main' into 120-API-core-stl_compat-pair
- Loading branch information
Showing
37 changed files
with
1,497 additions
and
682 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Python Virtual Environment | ||
/venv | ||
.venv/ | ||
# PyCharm files | ||
/.idea | ||
# Rendered html files | ||
|
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
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
This file was deleted.
Oops, something went wrong.
62 changes: 62 additions & 0 deletions
62
docs/source/API/core/initialize_finalize/InitArguments.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
InitArguments | ||
============= | ||
|
||
.. role:: cppkokkos(code) | ||
:language: cppkokkos | ||
|
||
.. _KokkosInitialize: initialize.html | ||
.. |KokkosInitialize| replace:: ``Kokkos::initialize`` | ||
|
||
.. _KokkosInitializationSetting: InitializationSettings.html | ||
.. |KokkosInitializationSetting| replace:: ``Kokkos::InitializationSettings`` | ||
|
||
Defined in ``<Kokkos_Core.hpp>`` header. | ||
|
||
.. warning:: Deprecated since 3.7, **use** ``Kokkos::InitializationSettings`` **instead** | ||
|
||
Interface | ||
--------- | ||
|
||
.. cppkokkos:struct:: InitArguments | ||
.. cppkokkos:member:: int num_threads | ||
.. cppkokkos:member:: int num_numa | ||
.. cppkokkos:member:: int device_id | ||
.. cppkokkos:member:: int ndevices | ||
.. cppkokkos:member:: int skip_device | ||
.. cppkokkos:member:: bool disable_warnings | ||
.. cppkokkos:function:: InitArguments() | ||
``InitArguments`` is a struct that can be used to programmatically define the arguments passed to |KokkosInitialize|_. It was deprecated in version 3.7 in favor of |KokkosInitializationSetting|_. | ||
|
||
One of the main reasons for replacing it was that user-specified data members cannot be distinguished from defaulted ones. | ||
|
||
Example | ||
~~~~~~~ | ||
|
||
.. code-block:: cpp | ||
#include <Kokkos_Core.hpp> | ||
int main() { | ||
Kokkos::InitArguments arguments; | ||
arguments.num_threads = 2; | ||
arguments.device_id = 1; | ||
arguments.disable_warnings = true; | ||
Kokkos::initialize(arguments); | ||
// ... | ||
Kokkos::finalize(); | ||
} | ||
See also | ||
~~~~~~~~ | ||
|
||
* |KokkosInitializationSetting|_ | ||
* |KokkosInitialize|_ |
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
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
Oops, something went wrong.