Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

SIMD unittests [WIP] #29

Draft
wants to merge 38 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
12ccb5e
Add gtest to project
JacobDomagala Aug 17, 2021
5bd62a9
Create initial CMake directories
JacobDomagala Aug 17, 2021
c222e75
Add initial tests for simd math functions
JacobDomagala Aug 31, 2021
6aa46e2
Copy clang-format, clang-tidy and .gitignore from kokkos repository
Sep 1, 2021
63be774
Reformat TestMath using kokkos clang-format settings
Sep 1, 2021
a3c6b49
Fix possibility of using ctest to run all tests
Sep 1, 2021
28686fb
Add basic tests for simd mask
Sep 4, 2021
1c7eda9
Simplify the test verification of Views in TestMath
JacobDomagala Sep 5, 2021
1a21d17
Fix wording
Sep 6, 2021
17be83c
Added tests for copysign and multiplysign
mperrinel Sep 7, 2021
0b036bd
Added simd operations tests
mperrinel Sep 7, 2021
97fc1b5
Updated TestMath to test float and double types
mperrinel Sep 8, 2021
939d346
Updated operators to test float and double
mperrinel Sep 9, 2021
85468c0
Added a loop on extent to test
mperrinel Sep 9, 2021
593fdfb
Added more higher extent and updated the sqrt and cbrt providers
mperrinel Sep 9, 2021
f26e021
Fix simd_mask test to operate on floats
Sep 9, 2021
b60c619
Operate on floats and doubles
Sep 9, 2021
601f8e3
Generalized tests for different constructors
mperrinel Sep 10, 2021
51073db
Test simd_mask::operator==()
Sep 11, 2021
e15880f
Test simd::choose()
Sep 11, 2021
c88fe95
Test code refactoring and rewording
Sep 11, 2021
8fcd73e
Generalized testMath with simd constructors
mperrinel Sep 13, 2021
7d7ad65
Added basic test for simd_storage
mperrinel Sep 13, 2021
9f585f1
Added simd storage constructor and updated storage test
mperrinel Sep 13, 2021
f7a0a4c
Added affectation storage test
mperrinel Sep 14, 2021
7b4584a
Fix the issues with different constructor tests
JacobDomagala Sep 14, 2021
87bba96
Added call to storage constructor for math methods
mperrinel Sep 14, 2021
ee2665d
Updated TestMath compatiblity with PACK.hrpp
mperrinel Sep 16, 2021
350ffae
added missing conditionnal on last commit
mperrinel Sep 16, 2021
bc130e3
Use proper define to detect the Scalar usage in TestHelper
JacobDomagala Sep 16, 2021
9975797
Initial CUDA warp tests
JacobDomagala Sep 24, 2021
5dac6e4
Add cbrt test for CUDA warp
JacobDomagala Sep 24, 2021
68a0892
Add fma test for CUDA warp
JacobDomagala Sep 24, 2021
06d381a
Add max test for CUDA warp
JacobDomagala Sep 24, 2021
be4671c
Add min test for CUDA warp
JacobDomagala Sep 24, 2021
97b9f28
Add tests for add/sub/mul/div operations for CUDA warp
JacobDomagala Sep 24, 2021
22f2b58
Increase the extents usedfor CUDA warp tests
JacobDomagala Sep 24, 2021
905ca2d
Update the function namings and add constructor test for CUDA warp
JacobDomagala Sep 25, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Official Tool: clang-format version 8.0.0
BasedOnStyle: google
SortIncludes: false
AlignConsecutiveAssignments: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
3 changes: 3 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Checks: '-*,kokkos-*,modernize-use-using,modernize-use-nullptr'
FormatStyle: file
HeaderFilterRegex: '.*/*.hpp'
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Standard ignores
*~
*.pyc
\#*#
.#*
.*.swp
.cproject
.project
testing/
.settings/
/.vs
/out/build
/CMakeSettings.json
/out/mytest

# build directories in source tree
/build*

# IDE-specific files/folders
## VSCode
/.vscode
## QtCreator
/CMakeLists.txt.user*
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

cmake_minimum_required(VERSION 3.17)

project(simd-math)

find_package(Kokkos REQUIRED)

# Set the local module path so custom cmake scripts can be located automatically
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules/")
set(SIMD_MATH_LIB simd_math CACHE INTERNAL "" FORCE )

add_subdirectory(src)

include(CTest)
add_subdirectory(test)
Loading