-
Notifications
You must be signed in to change notification settings - Fork 4
dump data for gemm umd path #20
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments. Also please add dumping data for reference OCL path so it can be used for comparison
| ConformanceResult validate_conformance(ID3D12CommandQueue* command_queue, | ||
| ID3D12CommandAllocator* command_allocator, ID3D12GraphicsCommandList* command_list, bool print_mismatche) override | ||
| { | ||
| auto dump_buffer_to_file = [&](const auto& buffer, const auto& file_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar lambda is in convolution umd dispatcher - could it be moved to be separate function?
| readback_buffer->Unmap(0, nullptr); | ||
|
|
||
| // Assuming data_out now contains the float data | ||
| float* float_ptr = reinterpret_cast<float*>(data_out.data()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const
|
|
||
| // Assuming data_out now contains the float data | ||
| float* float_ptr = reinterpret_cast<float*>(data_out.data()); | ||
| size_t num_floats = data_out.size() / sizeof(float); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const
| readback_buffer->Unmap(0, nullptr); | ||
|
|
||
| // Assuming data_out now contains the float data | ||
| float* float_ptr = reinterpret_cast<float*>(data_out.data()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Float assumption is fine, but probably not always valid as scratchpad can have arbitrary data type <- you may want to add such extended comment so it will be clear for code reader in future.
No description provided.