Skip to content

Commit

Permalink
Add more comments and reorder imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lbushi25 committed Jun 13, 2024
1 parent fe175df commit ee74673
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common/common_python_vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
# ************************************************************************

from collections import defaultdict
from string import Template
from itertools import product
from math import ceil, floor
from string import Template

class Data:
signs = [True, False]
Expand Down
8 changes: 8 additions & 0 deletions tests/vector_swizzles/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
set(TEST_CASES_LIST "")

set(TYPE_LIST "")

# The vector swizzle tests can become too large if we dont split them into chunks or batches
# and this can hurt compilation times or even cause it to fail on machines 16 GB of RAM or less.
# Therefore, we output the tests in batches in order to instead generate a larger number of files
# which are individually much smaller which in turn speeds up compilation when using multiple threads.
# It also reduces the memory footprint of the tests.
# Some experimentation has shown 32 to be a reasonable value for the number of chunks/batches
# where the compilation suceeds iunder constrained space resorces and we don't produce a huge number of files.
set(NUM_BATCHES "32")
get_std_type(TYPE_LIST)
get_no_vec_alias_type(TYPE_LIST)
Expand Down

0 comments on commit ee74673

Please sign in to comment.