Skip to content
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

Fix sample CI errors #1631

Merged
merged 2 commits into from
Feb 11, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions clients/benchmarks/client_groupedgemm_fixed_mk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* MIT License
*
* Copyright (C) 2022-2024 Advanced Micro Devices, Inc.
* Copyright (C) 2022-2025 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -895,7 +895,21 @@ int test_hipblaslt(hipDataType in_datatype,
if(validIdx.empty())
{
std::cerr << "No Solution found!" << std::endl;
return EXIT_FAILURE;
CHECK_HIP_ERROR(hipFree(d_n_vec));
CHECK_HIP_ERROR(hipFree(d_workspace));
CHECK_HIPBLASLT_ERROR(hipblasLtDestroy(handle));

for(int i = 0; i < gemm_count; i++)
{
CHECK_HIP_ERROR(hipFree(da[i]));
CHECK_HIP_ERROR(hipFree(db[i]));
CHECK_HIP_ERROR(hipFree(dc[i]));
CHECK_HIP_ERROR(hipFree(dd[i]));
if(enable_bias[i])
CHECK_HIP_ERROR(hipFree(d_bias[i]));
}
CHECK_HIP_ERROR(hipStreamDestroy(stream));
return EXIT_SUCCESS;
}

// step2: get default DeviceUserArguments from grouped gemm objects
Expand Down