oneapi-src / level-zero-tests

oneAPI Level Zero Conformance & Performance test content
https://spec.oneapi.com/versions/latest/elements/l0/source/index.html
MIT License
47 stars 40 forks source link

fix: handle maxAllocSize == total VRAM size in large buffer test #96

Closed lyu closed 1 week ago

nrspruit commented 1 week ago

windows error:

C:\project\conformance_tests\core\test_module\src\test_module.cpp(1227): error C2784: 'const _Ty &std::max(const _Ty &,const _Ty &) noexcept()': could not deduce template argument for 'const _Ty &' from 'uint64_t' C:\Program Files (x86)\Microsoft Visual Studio\current\BuildTools\VC\Tools\MSVC\14.29.30133\include\utility(40): note: see declaration of 'std::max' C:\project\conformance_tests\core\test_module\src\test_module.cpp(1227): error C2780: 'const _Ty &std::max(const _Ty &,const _Ty &,_Pr) noexcept()': expects 3 arguments - 2 provided C:\Program Files (x86)\Microsoft Visual Studio\current\BuildTools\VC\Tools\MSVC\14.29.30133\include\utility(31): note: see declaration of 'std::max'

lyu commented 1 week ago

@nrspruit I've added type cast and formatted the file