Skip to content

Support feature selection for device#406

Open
koubaa wants to merge 10 commits intoKomputeProject:masterfrom
koubaa:list-gpu-features
Open

Support feature selection for device#406
koubaa wants to merge 10 commits intoKomputeProject:masterfrom
koubaa:list-gpu-features

Conversation

@koubaa
Copy link
Copy Markdown
Contributor

@koubaa koubaa commented Dec 10, 2024

I encountered the following error

DEBUG:kp:[VALIDATION]: Validation - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08740 ] | MessageID = 0x6e224e9 | vkCreateShaderModule():  SPIR-V Capability Float64 was declared, but one of the following requirements is required (VkPhysicalDeviceFeatures::shaderFloat64).
The Vulkan spec states: If pCode is a pointer to SPIR-V code, and pCode declares any of the capabilities listed in the SPIR-V Environment appendix, one of the corresponding requirements must be satisfied (https://vulkan.lunarg.com/doc/view/1.3.296.0/windows/1.3-extensions/vkspec.html#VUID-VkShaderModuleCreateInfo-pCode-08740)

So I added the ability to 1) report the available features and 2) request features when creating the device.

koubaa added 3 commits December 10, 2024 09:33
Signed-off-by: koubaa <koubaa@github.com>
Signed-off-by: koubaa <koubaa@github.com>
Signed-off-by: koubaa <koubaa@github.com>
@koubaa koubaa changed the title Add more information about device to the python bindings Support feature selection for device Dec 10, 2024
koubaa added 5 commits December 10, 2024 10:34
Signed-off-by: koubaa <koubaa@github.com>
Signed-off-by: koubaa <koubaa@github.com>
Signed-off-by: koubaa <koubaa@github.com>
Signed-off-by: koubaa <koubaa@github.com>
Signed-off-by: koubaa <koubaa@github.com>
Signed-off-by: koubaa <koubaa@github.com>
@koubaa
Copy link
Copy Markdown
Contributor Author

koubaa commented Dec 10, 2024

I can't figure out why the python test is crashing. It works on my machine™

Signed-off-by: koubaa <koubaa@github.com>
@koubaa koubaa mentioned this pull request Dec 11, 2024
Copy link
Copy Markdown
Member

@axsaucedo axsaucedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, but there's a few additions and changes that I'm not clear why are there - please revisit

numpy==1.22.4
pytest==7.1.2

pytest-forked==1.6.0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this?

* physicalDevice
*/
Manager(uint32_t physicalDeviceIndex,
const vk::PhysicalDeviceFeatures& desiredFeatures,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need another constructor instead of just adding a new optional param to the previous constructor?

Comment thread src/Manager.cpp
}
#endif

static void setUpLogger() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we moving this?

Comment thread Makefile

test_python:
python3 -m pytest -s --log-cli-level=DEBUG -v python/test/
python3 -m pytest --forked -s --log-cli-level=DEBUG -v python/test/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this for?

}

kp::Manager mgrAsync(0, { 0, 2 });
kp::Manager mgrAsync(0, std::vector<uint32_t>{ 0, 2 });
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed?

Comment thread src/Manager.cpp
}

Manager::Manager()
: Manager(0)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this removed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants