Conversation
ihipEvent ihipCtx_t ihipStream_t ihipModule_t, ihipModuleSymbol_t hipGraph
fix catch2 test discovery extent test disabling to SPIRV fmt merge tests from CHIP-SPV fix standalone test link HipTest::launchKernel workaround for hipHostMalloc adjust hipHostMalloc test wait time 5000->5 s
This reverts commit 910202a.
That's undefined/suspicious behavior. At least it should be (not explicitly spelled out by the CUDA PM).
| set(CMAKE_CXX_COMPILER "${HIP_PATH}/bin/hipcc.bin") | ||
| set(CMAKE_C_COMPILER "${HIP_PATH}/bin/hipcc.bin") | ||
| set(CMAKE_CXX_COMPILER "${HIP_PATH}/bin/hipcc") | ||
| set(CMAKE_C_COMPILER "${HIP_PATH}/bin/hipcc") |
There was a problem hiding this comment.
This should make it possible to use the perl wrapper
| set(CMAKE_C_COMPILER "${HIP_PATH}/bin/hipcc.bin") | ||
| set(CMAKE_CXX_COMPILER "${HIP_PATH}/bin/hipcc") | ||
| set(CMAKE_C_COMPILER "${HIP_PATH}/bin/hipcc") | ||
| set(HIPCONFIG_EXECUTABLE "${HIP_PATH}/bin/hipconfig.bin") |
There was a problem hiding this comment.
Should be changed to hipconfig so it uses the perl wrapper
| message("Standalone Catch test: ${exec_name} ${src}") | ||
| add_executable(${exec_name} EXCLUDE_FROM_ALL ${src} $<TARGET_OBJECTS:Main_Object_Standalone> $<TARGET_OBJECTS:KERNELS>) | ||
| target_link_libraries(${exec_name} PRIVATE stdc++fs -pthread ) | ||
| target_link_libraries(${exec_name} PRIVATE -pthread ) |
There was a problem hiding this comment.
stdc++fs is spammed all over the HIP codebases, despite often requiring c++17 or newer and with bad conditions.
These changes might break it for some users, but rather than adding it manually, we should be using CMake to add filesystem support, OR, require c++17 through CMake and then fail.
| #elif defined(__APPLE__) || defined(__MACOSX) | ||
| #define HT_WIN 0 | ||
| #define HT_LINUX 0 | ||
| #define HT_MACOS 1 |
There was a problem hiding this comment.
I have no idea where these new flags are used.
The existing code quality here is pretty horrible.
| #ifdef __linux__ | ||
| #include <sys/sysinfo.h> | ||
| #elif defined(__APPLE__) || defined(__MACOSX) | ||
| // No-op |
| # skipped due to os related code in tests | ||
| # need to work on them when all the tests are enabled | ||
| if(UNIX) | ||
| if(UNIX AND NOT APPLE) |
There was a problem hiding this comment.
These tests might be portable. I didn't check yet.
|
|
||
| *total = (vmstat.wire_count + vmstat.active_count + vmstat.inactive_count + vmstat.free_count + Pages occupied by compressor + Pages speculative) * pageSize; | ||
| *free = vmstat.free_count * pageSize; | ||
| #endif |
There was a problem hiding this comment.
This still needs to be activated. Consider it WIP
(I'll add a description later)
Part of CHIP-SPV/chipStar#602