Skip to content

Commit 918907b

Browse files
FPGA: Reduce array size for simulation in the loop_unroll sample (#1443)
The loop unroll code sample's array size was 1024 for simulation which caused simulating with Questa FSE on Windows to be very slow (>24 hours). This changes the array size to 16 which lets the simulation to complete in ~1 hour using Questa FSE on Windows.
1 parent 61679a3 commit 918907b

File tree

1 file changed

+1
-1
lines changed
  • DirectProgramming/C++SYCL_FPGA/Tutorials/Features/loop_unroll/src

1 file changed

+1
-1
lines changed

DirectProgramming/C++SYCL_FPGA/Tutorials/Features/loop_unroll/src/loop_unroll.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void VecAdd(const std::vector<float> &summands1,
9797

9898
int main(int argc, char *argv[]) {
9999
#if defined(FPGA_SIMULATOR)
100-
size_t array_size = 1 << 10;
100+
size_t array_size = 1 << 4;
101101
#else
102102
size_t array_size = 1 << 26;
103103
#endif

0 commit comments

Comments
 (0)