Skip to content

Chained scan unit test - #287

Open
keptsecret wants to merge 9 commits into
masterfrom
device_chained_scan
Open

Chained scan unit test#287
keptsecret wants to merge 9 commits into
masterfrom
device_chained_scan

Conversation

@keptsecret

Copy link
Copy Markdown
Contributor

No description provided.


struct device_capabilities
{
#ifdef TEST_NATIVE

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

small nitpicking: If you do { "TEST_NATIVE", "1" } to enable this, it should be #if not #ifdef

// Normally we'd beautifully JSON serialize the thing, allow multiple devices & drivers + metadata
auto bin = cpu->getEntries().begin()->second.bin;
IFile::success_t success;
m_spirv_isa_cache_output->write(success, bin->data(), 0ull, bin->size());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I can't seem to get the purpose or benefit of the pipeline cache in this example it looks completely unnecessary.
It gets constantly overwritten
and you could actually create a single pipeline per workgroup conf at runtime and not any sort of pipeline cache.

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