Closed pvelesko closed 3 months ago
Seeing a lot of these as well as a lot more test failures even some basic tests such as Unit_hipMemsetSync
863: CHIP warning [TID 3650729] [1710422994.385196816] : A device function is already registered and mapped to a different module.
@linehill
863: CHIP warning [TID 3650729] [1710422994.385196816] : A device function is already registered and mapped to a different module.
Probably just a false positive. I wrote the warning at a time I didn’t fully understood what was happening (__hipRegisterFuntcion() called multiple times with same host pointer). I made a patch to remove it: https://github.com/CHIP-SPV/chipStar/pull/809.
FYI, building this branch from scratch with multiple jobs may end up in a situation where hipcc is not built before building hip-tests:
...
cd /mnt/md1/linehill/ws-chipstar-2/builds/chipstar/catch/catch_tests/unit/module && ../../../../bin/hipcc --genco --std=c++17 /mnt/md1/linehill/ws-chipstar-2/chipstar/hip-tests/catch/unit/module/get_function_module.cc -o get_function_module.code -I/mnt/md1/linehill/ws-chipstar-2/builds/chipstar/include/ --rocm-path=/opt/rocm
/bin/sh: 1: ../../../../bin/hipcc: not found
catch/catch_tests/unit/module/CMakeFiles/get_function_module.dir/build.make:72: recipe for target 'catch/catch_tests/unit/module/get_function_module.code' failed
make[2]: *** [catch/catch_tests/unit/module/get_function_module.code] Error 127
...
/mnt/md1/linehill/ws-chipstar-2/chipstar/include/hip/devicelib/type_casting_intrinsics.hh:32:36: warning: inline function '__double2hiint' is not defined [-Wundefined-inline]
extern "C++" inline __device__ int __double2hiint(double x);
Removing the inline
suppresses the warning. The inline
qualifier is only meaningful for function definitions.
Please run clang-format for the whole patch set. E.g. with git clang-format main.
done
Did you check if there are new hipDeviceProp_t and hipDeviceAttribute_t entries and updated hipGetDeviceProperties() and hipDeviceGetAttribute() to respond to them?
Yes there changes to these but since we decided to stick with the old tests for the time being it doesn't make sense to update these and have two sets of broken unit tests.
Update HIP version from 5.1 to 6.x
Update hip-tests submodule
Update HIPCC
--genco
option. Reduces changes needed for upstreamingThe following individual tests are still excluded, mostly due to failures in LLVM-SPIRV-Translator
The following test categores are excluded due to unsuported features.
Occupancy
Surface - not implemented:
Texture - not implemented:
One final caveat: test discovery happens at runtime, every single time.. This means that to run a single test, we need to discover all the tests first. Adds 70 seconds overhear for launching a single test.Total number of tests 975 -> 1898