-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
113 additions
and
153 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
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,19 +1,14 @@ | ||
# usmqueries | ||
# svmqueries | ||
|
||
## Sample Purpose | ||
|
||
This sample queries and prints the Unified Shared Memory capabilities of a device. | ||
Many USM samples require specific USM capabilities and this sample can be used to verify if it will or will not run on a device. | ||
This sample queries and prints the Shared Virtual Memory (SVM) capabilities for all devices in the system. | ||
Many SVM samples require specific SVM capabilities and this sample can be used to verify if it will or will not run on a device. | ||
|
||
## Key APIs and Concepts | ||
|
||
This sample demonstrates the new device queries for Unified Shared Memory capabilities. | ||
This sample currently uses c APIs to perform the device queries because the C++ bindings do not support Unified Shared Memory (yet). | ||
When support for Unified Shared Memory is added to the C++ bindings the samples will be updated to use the C++ bindings instead, which should simplify the sample slightly. | ||
This sample demonstrates the one query for Shared Virtual Memory capabilities. | ||
|
||
## Command Line Options | ||
|
||
| Option | Default Value | Description | | ||
|:--|:-:|:--| | ||
| `-d <index>` | 0 | Specify the index of the OpenCL device in the platform to execute on the sample on. | ||
| `-p <index>` | 0 | Specify the index of the OpenCL platform to execute the sample on. | ||
None |
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 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
Oops, something went wrong.