Skip to content

Commit

Permalink
Trying to fix C.I. timeout...
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-lunarg committed Feb 27, 2024
1 parent 813ad82 commit 0af55cc
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions test/gtc/gtc_bitfield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,9 @@ namespace bitfieldInterleave
// ALU
std::vector<glm::uint64> Data(x_max * y_max);
std::vector<glm::u32vec2> Param(x_max * y_max);
for(glm::uint32 i = 0; i < Param.size(); ++i)
for(glm::uint32 i = 0; i < Param.size(); ++i) {
Param[i] = glm::u32vec2(i % x_max, i / y_max);
}

{
std::clock_t LastTime = std::clock();
Expand Down Expand Up @@ -653,8 +654,6 @@ namespace bitfieldInterleave
std::printf("glm::detail::bitfieldInterleave Time %d clocks\n", static_cast<int>(Time));
}

/* Time out on C.I.?
# if((GLM_PLATFORM & GLM_PLATFORM_WINDOWS) || (GLM_PLATFORM & GLM_PLATFORM_LINUX))
# if(GLM_ARCH & GLM_ARCH_SSE2_BIT && !(GLM_COMPILER & GLM_COMPILER_GCC))
{
// SIMD
Expand All @@ -675,8 +674,6 @@ namespace bitfieldInterleave
std::printf("_mm_bit_interleave_si128 Time %d clocks\n", static_cast<int>(Time));
}
# endif//GLM_ARCH & GLM_ARCH_SSE2_BIT
# endif//GLM_PLATFORM GLM_PLATFORM_APPLE
*/

return 0;
}
Expand Down Expand Up @@ -817,7 +814,7 @@ namespace bitfieldInterleave5

const std::clock_t BeginTime = std::clock();

for(glm::size_t k = 0; k < 10000; ++k)
for(glm::size_t k = 0; k < 100; ++k)
for(glm::size_t j = 0; j < count; ++j)
for(glm::size_t i = 0; i < count; ++i)
Error += Result[j * count + i] == glm::bitfieldInterleave(glm::uint8(i), glm::uint8(j)) ? 0 : 1;
Expand All @@ -837,7 +834,7 @@ namespace bitfieldInterleave5

const std::clock_t BeginTime = std::clock();

for(glm::size_t k = 0; k < 10000; ++k)
for(glm::size_t k = 0; k < 100; ++k)
for(glm::size_t j = 0; j < count; ++j)
for(glm::size_t i = 0; i < count; ++i)
Error += Result[j * count + i] == bitfieldInterleave_u8vec2(glm::uint8(i), glm::uint8(j)) ? 0 : 1;
Expand All @@ -857,7 +854,7 @@ namespace bitfieldInterleave5

const std::clock_t BeginTime = std::clock();

for(glm::size_t k = 0; k < 10000; ++k)
for(glm::size_t k = 0; k < 100; ++k)
for(glm::size_t j = 0; j < count; ++j)
for(glm::size_t i = 0; i < count; ++i)
Error += Result[j * count + i] == glm::bitfieldInterleave(glm::uint8(i), glm::uint8(j), glm::uint8(i), glm::uint8(j)) ? 0 : 1;
Expand Down Expand Up @@ -897,7 +894,7 @@ namespace bitfieldInterleave5

const std::clock_t BeginTime = std::clock();

for(glm::size_t k = 0; k < 10000; ++k)
for(glm::size_t k = 0; k < 100; ++k)
for(glm::size_t j = 0; j < count; ++j)
for(glm::size_t i = 0; i < count; ++i)
Error += Result[j * count + i] == glm::bitfieldInterleave(glm::uint16(i), glm::uint16(j)) ? 0 : 1;
Expand Down

0 comments on commit 0af55cc

Please sign in to comment.