Skip to content

Commit

Permalink
Merge pull request #18 from james-d-mitchell/master
Browse files Browse the repository at this point in the history
Update version number to 0.0.8 and rename `VERSION`
  • Loading branch information
hivert authored Oct 23, 2023
2 parents c52af7b + 4847454 commit 3846007
Show file tree
Hide file tree
Showing 15 changed files with 44 additions and 11 deletions.
1 change: 1 addition & 0 deletions .VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.8
File renamed without changes.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ ENDIF(BUILD_TESTING)
#####################
# config.h file stuff
configure_file(${CMAKE_SOURCE_DIR}/config.h.in ${CMAKE_BINARY_DIR}/HPCombi-config.h)
configure_file(${CMAKE_SOURCE_DIR}/VERSION.in ${CMAKE_BINARY_DIR}/VERSION)
configure_file(${CMAKE_SOURCE_DIR}/.VERSION.in ${CMAKE_BINARY_DIR}/.VERSION)

set(AUTOGENERATED_WARNING "WARNING: THIS IS A CMAKE AUTO-GENERATED FILE.")

Expand All @@ -151,7 +151,7 @@ foreach(f ${install_misc})
DESTINATION share/${CMAKE_PROJECT_NAME})
endforeach(f)

install (FILES ${CMAKE_CURRENT_BINARY_DIR}/VERSION DESTINATION ".")
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/.VERSION DESTINATION ".")

install (FILES ${CMAKE_CURRENT_BINARY_DIR}/HPCombi-config.h
DESTINATION include/${CMAKE_PROJECT_NAME})
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# HPCombi ![build status](https://api.travis-ci.org/hivert/HPCombi.svg?branch=master)
High Performance Combinatorics in C++ using vector instructions v0.0.6
High Performance Combinatorics in C++ using vector instructions v0.0.8

SSE and AVX instruction sets allows for very fast manipulation of
combinatorial objects such as transformations, permutations, boolean matrices
Expand Down
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

33 changes: 33 additions & 0 deletions etc/check-list-intrin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash
set -e

bold() {
printf "\033[1m%s\033[0m\n" "$*"
}

if [[ $# -ne 0 ]]; then
bold "error expected no arguments, got $#!"
exit 1
fi

echo "Checking intrinsics used in code base versus declared in 'list_intrin.txt' . . ."

grep -oh -e "_mm\w*\b" include/*.* | sort | uniq > intrin_actuals.txt

python3 - <<END
import sys
with open('intrin_actuals.txt', 'r') as f:
intrin_actuals = [x.strip() for x in f.readlines()]
with open('list_intrin.txt', 'r') as f:
list_intrin = [x.strip()[:x.find(';')] for x in f.readlines() if not x.startswith('#')]
for intrin_actual in intrin_actuals:
if not intrin_actual in list_intrin:
print(f"\033[41m{('\`' + intrin_actual + '\`').ljust(16, ' ')} found in \`include/*.hpp\` but not in \`list_intrin.txt\`!\033[0m")
for intrin in list_intrin:
if not intrin in intrin_actuals:
print(f"\033[41m{('\`' + intrin + '\`').ljust(16, ' ')} found in \`list_intrin.txt\` but not in \`include/*.hpp\`!\033[0m")
END

rm -f intrin_actuals.txt
3 changes: 3 additions & 0 deletions experiments/Perm32/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# HPCombi Experimental files

These files contains experiments to be later incorporated into the sources.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 4 additions & 3 deletions list_intrin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@
_mm_blendv_epi8;__m128i(),__m128i(),__m128i()
_mm_bslli_si128;__m128i(),1
_mm_bsrli_si128;__m128i(),1
_mm_cmpeq_epi8;__m128i(),__m128i()
_mm_cmpestri;__m128i(),1,__m128i(),1,1
_mm_cmpestrm;__m128i(),1,__m128i(),1,1
_mm_cmplt_epi8;__m128i(),__m128i()
_mm_extract_epi64;__m128i(),1
_mm_max_epi8;__m128i(),__m128i()
_mm_max_epu8;__m128i(),__m128i()
_mm_min_epi8;__m128i(),__m128i()
_mm_min_epu8;__m128i(),__m128i()
_mm_movemask_epi8;__m128i()
_mm_popcnt_u32;1
_mm_popcnt_u64;1
_mm_set_epi64x;1,1
_mm_shuffle_epi8;__m128i(),__m128i()
_mm_slli_epi32;__m128i(),1
_mm_testc_si128;__m128i(),__m128i()
_mm_testz_si128;__m128i(),__m128i()
_mm_xor_si128;__m128i(),__m128i()
# _mm_cmpeq_epi8;__m128i(),__m128i()
# _mm_cmplt_epi8;__m128i(),__m128i()
# _mm_max_epi8
4 changes: 0 additions & 4 deletions src/Perm32/README.md

This file was deleted.

0 comments on commit 3846007

Please sign in to comment.