add vector scale a and b in sample code#1163
Conversation
|
Running tests... 100% tests passed, 0 tests failed out of 40 Total Test time (real) = 2969.91 sec |
| if(returnedAlgoCount == 0) | ||
| { | ||
| std::cerr << "No valid solution found!" << std::endl; | ||
| return; |
There was a problem hiding this comment.
please also free the allocated memory and descriptor before early return
There was a problem hiding this comment.
I will create another PR to free the allocated memory and descriptor before early return in every sample code
| CHECK_HIPBLASLT_ERROR(gemm.initialize(heuristicResult[0].algo, d_workspace)); | ||
| CHECK_HIPBLASLT_ERROR(gemm.run(stream)); | ||
|
|
||
| std::cout << "Matrix multiplication completed successfully." << std::endl; |
| std::vector<float> scale_a(128, 0.5f); // Scale A vector setting | ||
| std::vector<float> scale_b(128, 2.0f); // Scale B vector setting | ||
|
|
||
| std::cout << "Running with Scale A = [0.5, ..., 0.5], Scale B = [2.0, ..., 2.0]" << std::endl; |
There was a problem hiding this comment.
It is better to use different value for each scale A element since this example is scale A/B VECTOR but not scalar.
|
|
||
| int main() | ||
| { | ||
| // This is an example using hipblaslt extension API: ScaleA & ScaleB & ScaleC |
There was a problem hiding this comment.
no ScaleC in this example
bfde520 to
32b6a18
Compare
|
root@banff-cyxtera-s73-1:/Workspace/hipBLASLt/build/release/clients# make test 100% tests passed, 0 tests failed out of 41 Total Test time (real) = 1234.98 sec |
|
Please resolve merge conflicts or close this PR to complete the task of importing PRs from this repo to the monorepo. |
[hipblaslt] Docs: Add new FP6/FP4 data types to reference materials (#1163) ## Motivation <!-- Explain the purpose of this PR and the goals it aims to achieve. --> Adds information on the new hipBLASLt data types ## Technical Details <!-- Explain the changes along with any relevant GitHub links. --> Update the API reference and data type support docs. Import the header documentation to the data types reference page using Doxygen (required a formatting fix to hipblaslt.h to display properly) ## Test Plan <!-- Explain any relevant testing done to verify this PR. --> NA ## Test Result <!-- Briefly summarize test outcomes. --> NA ## Submission Checklist - [x ] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
No description provided.