Fixing SDK compilation issues due to missing header (#433)

[ROCm/rocprofiler-sdk commit: 918270bf63]
This commit is contained in:
Bhardwaj, Gopesh
2025-06-04 13:39:41 +05:30
committed by GitHub
parent adc4e6995d
commit d47d3d3e9c
5 changed files with 20 additions and 15 deletions
@@ -20,6 +20,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#include <libgen.h>
#include <future>
#include <iomanip>
#include <iostream>
@@ -171,7 +172,7 @@ run(uint64_t devid,
int
main(int argc, char* argv[])
{
std::cout << "[" << ::basename(argv[0]) << "] executing..." << std::endl;
std::cout << "[" << basename(argv[0]) << "] executing..." << std::endl;
int ndevice_real = 0;
checkHipErrors(hipGetDeviceCount(&ndevice_real));
@@ -214,6 +215,6 @@ main(int argc, char* argv[])
checkHipErrors(hipDeviceSynchronize());
}
std::cout << "[" << ::basename(argv[0]) << "] complete" << std::endl;
std::cout << "[" << basename(argv[0]) << "] complete" << std::endl;
return 0;
}