Skip to content

Commit

Permalink
[vulkan] Fix Vulkan device score bug (#4803)
Browse files Browse the repository at this point in the history
* Update interacting with PyTorch

* Update external array indexing

* Update external.md

* Update external.md

* Auto Format

* Update docs/lang/articles/basic/external.md

Co-authored-by: Vissidarte-Herman <93570324+Vissidarte-Herman@users.noreply.github.com>

* Update docs/lang/articles/basic/external.md

Co-authored-by: Vissidarte-Herman <93570324+Vissidarte-Herman@users.noreply.github.com>

* Update docs/lang/articles/basic/external.md

Co-authored-by: Vissidarte-Herman <93570324+Vissidarte-Herman@users.noreply.github.com>

* Update docs/lang/articles/basic/external.md

Co-authored-by: Vissidarte-Herman <93570324+Vissidarte-Herman@users.noreply.github.com>

* Update docs/lang/articles/basic/external.md

Co-authored-by: Vissidarte-Herman <93570324+Vissidarte-Herman@users.noreply.github.com>

* Update docs/lang/articles/basic/external.md

Co-authored-by: Vissidarte-Herman <93570324+Vissidarte-Herman@users.noreply.github.com>

* [vulkan] fix device score bug

Co-authored-by: Taichi Gardener <taichigardener@gmail.com>
Co-authored-by: Ye Kuang <k-ye@users.noreply.github.com>
Co-authored-by: Vissidarte-Herman <93570324+Vissidarte-Herman@users.noreply.github.com>
  • Loading branch information
4 people authored Apr 18, 2022
1 parent d201c1b commit 65814d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taichi/backends/vulkan/vulkan_device_creator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ size_t get_device_score(VkPhysicalDevice device, VkSurfaceKHR surface) {
score +=
size_t(properties.deviceType == VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU) *
1000;
score += VK_API_VERSION_MINOR(properties.driverVersion) * 100;
score += VK_API_VERSION_MINOR(properties.apiVersion) * 100;

return score;
}
Expand Down

0 comments on commit 65814d0

Please sign in to comment.