Skip to content

Cache control hint test issues. #20718

@bader

Description

@bader

void cache_control_read_hint_func() {
queue q;
constexpr int N = 10;
float *ArrayA = malloc_shared<float>(N, q);
q.submit([&](handler &cgh) {
cgh.single_task<>([=]() {
load_hint src{&ArrayA[0]};
*src = 55.0f;
});
});
}

This code is supposed to check cache hints for load operation, but test only does one store. The same issue exists in other "read" checks.
All checks in this test are doing only store operation.

ap_load_ca_uc_uc<double> x_l(x);
ap_load_st_ca_uc<double> y_l(y);
const double xVal = x_l[row_st + sgr_tid];
const double yVal = y_l[row_st + sgr_tid];

This is the only place where the test loads with cache hints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions