EXSWHTEC-371 - Implement tests for the hipDrvGraphAddMemsetNode API #447

Change-Id: I981e14f34b008054d46e61ebae0099792df446b1
이 커밋은 다음에 포함됨:
Nives Vukovic 작성하고 Rakesh Roy가 2024-02-27 12:30:54 +05:30를 커밋함
1 부모 6f9f5c07fe
커밋 63c93f95a8
6 파일이 변경됨
+677 -6

검색과 일치하는 파일 없음

+3 -3
파일 보기
@@ -26,14 +26,14 @@ THE SOFTWARE.
#include <resource_guards.hh>
#include <utils.hh>
template <typename T, typename F> void GraphMemsetNodeCommonPositive(F f) {
template <typename T, typename Tp, typename F> void GraphMemsetNodeCommonPositive(F f) {
const size_t width = GENERATE(1, 64, kPageSize / sizeof(T) + 1);
const size_t height = GENERATE(1, 2, 1024);
DYNAMIC_SECTION("Width: " << width << " Height: " << height) {
LinearAllocGuard2D<T> alloc(width, height);
constexpr T set_value = 42;
hipMemsetParams params = {};
Tp params = {};
params.dst = alloc.ptr();
params.elementSize = sizeof(T);
params.width = width;
@@ -50,7 +50,7 @@ template <typename T, typename F> void GraphMemsetNodeCommonPositive(F f) {
}
}
template <typename F> void MemsetCommonNegative(F f, hipMemsetParams params) {
template <typename F, typename T> void MemsetCommonNegative(F f, T params) {
SECTION("pMemsetParams == nullptr") { HIP_CHECK_ERROR(f(nullptr), hipErrorInvalidValue); }
SECTION("pMemsetParams.dst == nullptr") {