mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
add determinism float flag to all platforms on test
This commit is contained in:
parent
32874a96e5
commit
cd84458911
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@ -36,7 +36,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p output/x86_64
|
||||
python cmake_build.py Release -DPK_BUILD_MODULE_LZ4=ON
|
||||
python cmake_build.py Release -DPK_BUILD_MODULE_LZ4=ON -DPK_ENABLE_DETERMINISTIC_FLOAT=ON
|
||||
cp main.exe output/x86_64
|
||||
cp pocketpy.dll output/x86_64
|
||||
- uses: actions/upload-artifact@v4
|
||||
@ -70,7 +70,7 @@ jobs:
|
||||
run: |
|
||||
python scripts/check_pragma_once.py include
|
||||
mkdir -p output/x86_64
|
||||
python cmake_build.py Release -DPK_BUILD_MODULE_LZ4=ON
|
||||
python cmake_build.py Release -DPK_BUILD_MODULE_LZ4=ON -DPK_ENABLE_DETERMINISTIC_FLOAT=ON
|
||||
python scripts/run_tests.py
|
||||
cp main output/x86_64
|
||||
cp libpocketpy.so output/x86_64
|
||||
@ -90,7 +90,7 @@ jobs:
|
||||
submodules: true
|
||||
- name: Compile and Test
|
||||
run: |
|
||||
python cmake_build.py Release -DPK_BUILD_MODULE_LZ4=ON
|
||||
python cmake_build.py Release -DPK_BUILD_MODULE_LZ4=ON -DPK_ENABLE_DETERMINISTIC_FLOAT=ON
|
||||
python scripts/run_tests.py
|
||||
- name: Benchmark
|
||||
run: python scripts/run_tests.py benchmark
|
||||
|
@ -113,9 +113,6 @@ if(PK_BUILD_WITH_UNITY)
|
||||
endif()
|
||||
|
||||
############################################
|
||||
if(NOT MSVC)
|
||||
target_link_libraries(${PROJECT_NAME} pthread)
|
||||
endif()
|
||||
|
||||
if(PK_BUILD_MODULE_LZ4)
|
||||
target_link_libraries(${PROJECT_NAME} lz4)
|
||||
|
@ -579,8 +579,8 @@ static bool inverse(const c11_mat3x3* m, c11_mat3x3* restrict out) {
|
||||
}
|
||||
|
||||
static void trs(c11_vec2 t, float r, c11_vec2 s, c11_mat3x3* restrict out) {
|
||||
float cr = cosf(r);
|
||||
float sr = sinf(r);
|
||||
float cr = cos(r);
|
||||
float sr = sin(r);
|
||||
// clang-format off
|
||||
*out = (c11_mat3x3){
|
||||
._11 = s.x * cr, ._12 = -s.y * sr, ._13 = t.x,
|
||||
|
Loading…
x
Reference in New Issue
Block a user