SWDEV-483130: Replace calls to deprecated functions hipHostMalloc/hipHostFree (#1070)

* SWDEV-483130: Replace calls to deprecated functions hipHostMalloc/hipHostFree

* SWDEV-483130: Replace calls to deprecated functions hipHostMalloc/hipHostFree. Moved definitions from lib/commons/defines.hpp to samples/common/defines.hpp and tests/common/defines.hpp

* Updated comment for clarity

* Update tests/rocprofv3/aborted-app/validate.py

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Formatting

* Formatting

* Updated CHANGELOG

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Этот коммит содержится в:
itrowbri
2024-09-12 18:31:00 -05:00
коммит произвёл GitHub
родитель efbe4ea0a2
Коммит 8d7be2e4b4
16 изменённых файлов: 63 добавлений и 26 удалений
+3 -1
Просмотреть файл
@@ -27,6 +27,8 @@
#include <iostream>
#include <vector>
#include "common/defines.hpp"
#define hipCheckErr(errval) \
do \
{ \
@@ -166,7 +168,7 @@ int
test_scratch()
{
uint64_t* data_ptr;
hipCheckErr(hipHostMalloc(&data_ptr, sizeof(uint64_t), 0));
hipCheckErr(HIP_HOST_ALLOC_FUNC(&data_ptr, sizeof(uint64_t), 0));
std::vector<float> host_floats(1024);
float* dev;