Skip to content

Try to get SM Count or request as input #4210

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

Closed
wants to merge 1 commit into from

Conversation

Esteb37
Copy link
Contributor

@Esteb37 Esteb37 commented Jul 11, 2024

Some of the device's properties, like the number of available Streaming Processors, or the total size of the cache, are not supported by Vulkan as direct queries. These variables are essential for ArchProbe's algorithms, so we need to do some preprocessing with OpenCL to extract these values, before moving to the Vulkan implementation.

This diff moves the GPUInfo implementation into a class to have better control of internal variables like the device's properties, and obtains important limits that will be used in the following diffs, like the device's SM Count, Cache size and number of logic threads.

Differential Revision: D59636879

Copy link

pytorch-bot bot commented Jul 11, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/4210

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 11, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D59636879

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D59636879

@Esteb37 Esteb37 force-pushed the export-D59636879 branch from b034494 to 7ef5ed2 Compare July 11, 2024 20:20
Esteb37 pushed a commit to Esteb37/executorch that referenced this pull request Jul 11, 2024
Summary:
Pull Request resolved: pytorch#4210

Some of the device's properties, like the number of available Streaming Processors, or the total size of the cache, are not supported by Vulkan as direct queries. These variables are essential for ArchProbe's algorithms, so we need to do some preprocessing with OpenCL to extract these values, before moving to the Vulkan implementation.

This diff moves the GPUInfo implementation into a class to have better control of internal variables like the device's properties, and obtains important limits that will be used in the following diffs, like the device's SM Count, Cache size and number of logic threads.

Differential Revision: D59636879
Esteb37 pushed a commit to Esteb37/executorch that referenced this pull request Jul 11, 2024
Summary:
Pull Request resolved: pytorch#4210

Some of the device's properties, like the number of available Streaming Processors, or the total size of the cache, are not supported by Vulkan as direct queries. These variables are essential for ArchProbe's algorithms, so we need to do some preprocessing with OpenCL to extract these values, before moving to the Vulkan implementation.

This diff moves the GPUInfo implementation into a class to have better control of internal variables like the device's properties, and obtains important limits that will be used in the following diffs, like the device's SM Count, Cache size and number of logic threads.

Differential Revision: D59636879
Esteb37 pushed a commit to Esteb37/executorch that referenced this pull request Jul 11, 2024
Summary:
Pull Request resolved: pytorch#4210

Some of the device's properties, like the number of available Streaming Processors, or the total size of the cache, are not supported by Vulkan as direct queries. These variables are essential for ArchProbe's algorithms, so we need to do some preprocessing with OpenCL to extract these values, before moving to the Vulkan implementation.

This diff moves the GPUInfo implementation into a class to have better control of internal variables like the device's properties, and obtains important limits that will be used in the following diffs, like the device's SM Count, Cache size and number of logic threads.

Differential Revision: D59636879
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D59636879

@Esteb37 Esteb37 force-pushed the export-D59636879 branch from 7ef5ed2 to abc6a52 Compare July 11, 2024 20:51
Esteb37 pushed a commit to Esteb37/executorch that referenced this pull request Jul 11, 2024
Summary:
Pull Request resolved: pytorch#4210

Some of the device's properties, like the number of available Streaming Processors, or the total size of the cache, are not supported by Vulkan as direct queries. These variables are essential for ArchProbe's algorithms, so we need to do some preprocessing with OpenCL to extract these values, before moving to the Vulkan implementation.

This diff moves the GPUInfo implementation into a class to have better control of internal variables like the device's properties, and obtains important limits that will be used in the following diffs, like the device's SM Count, Cache size and number of logic threads.

Differential Revision: D59636879
Summary:
Pull Request resolved: pytorch#4210

Some of the device's properties, like the number of available Streaming Processors, or the total size of the cache, are not supported by Vulkan as direct queries. These variables are essential for ArchProbe's algorithms, so we need to do some preprocessing with OpenCL to extract these values, before moving to the Vulkan implementation.

This diff moves the GPUInfo implementation into a class to have better control of internal variables like the device's properties, and obtains important limits that will be used in the following diffs, like the device's SM Count, Cache size and number of logic threads.

Differential Revision: D59636879
Esteb37 pushed a commit to Esteb37/executorch that referenced this pull request Jul 12, 2024
Summary:
Pull Request resolved: pytorch#4210

Some of the device's properties, like the number of available Streaming Processors, or the total size of the cache, are not supported by Vulkan as direct queries. These variables are essential for ArchProbe's algorithms, so we need to do some preprocessing with OpenCL to extract these values, before moving to the Vulkan implementation.

This diff moves the GPUInfo implementation into a class to have better control of internal variables like the device's properties, and obtains important limits that will be used in the following diffs, like the device's SM Count, Cache size and number of logic threads.

Differential Revision: D59636879
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D59636879

@Esteb37 Esteb37 force-pushed the export-D59636879 branch from abc6a52 to b103696 Compare July 12, 2024 17:13
Esteb37 pushed a commit to Esteb37/executorch that referenced this pull request Jul 12, 2024
Summary:
Pull Request resolved: pytorch#4210

Some of the device's properties, like the number of available Streaming Processors, or the total size of the cache, are not supported by Vulkan as direct queries. These variables are essential for ArchProbe's algorithms, so we need to do some preprocessing with OpenCL to extract these values, before moving to the Vulkan implementation.

This diff moves the GPUInfo implementation into a class to have better control of internal variables like the device's properties, and obtains important limits that will be used in the following diffs, like the device's SM Count, Cache size and number of logic threads.

Differential Revision: D59636879
Esteb37 pushed a commit to Esteb37/executorch that referenced this pull request Jul 12, 2024
Summary:
Pull Request resolved: pytorch#4210

Some of the device's properties, like the number of available Streaming Processors, or the total size of the cache, are not supported by Vulkan as direct queries. These variables are essential for ArchProbe's algorithms, so we need to do some preprocessing with OpenCL to extract these values, before moving to the Vulkan implementation.

This diff moves the GPUInfo implementation into a class to have better control of internal variables like the device's properties, and obtains important limits that will be used in the following diffs, like the device's SM Count, Cache size and number of logic threads.

Differential Revision: D59636879
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 4b45264.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants