Add Heterogeneous implementation.

This commit is contained in:
hal8174 2024-06-05 16:58:06 +02:00
parent f702e82b4f
commit 97dbc2db13
4 changed files with 145 additions and 20 deletions

View file

@ -54,6 +54,11 @@ namespace embree
data.resize(res.x * res.y * res.z);
file.read(reinterpret_cast<char*>(data.data()), data.size() * sizeof(float));
float max = 0;
for (size_t i = 0; i < res.x * res.y * res.z; i++) {
max = std::max(data[i], max);
}
printf("max:\t%f\n", max);
file.close();
}