Skip to content

Commit

Permalink
A few updates -- major refactor incoming (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pencilcaseman committed Nov 7, 2023
1 parent 6d6afa8 commit 1a5469e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/ArchDetect2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ int main() {
}" SIMD_FMA3)

# Check AVX
check_simd_capability("-mavx" "/arch:AVX" "AVX" "
check_simd_capability("-mavx" "" "AVX" "
#include <immintrin.h>
int main() {
__m256 a = _mm256_set_ps(-1.0f, 2.0f, -3.0f, 4.0f, -1.0f, 2.0f, -3.0f, 4.0f);
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ build-backend = "scikit_build_core.build"
[tool.scikit-build]

cmake.build-type = "Release"
cmake.args = ["-DCMAKE_BUILD_TYPE=Release"]
cmake.args = ["-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_PARALLEL_LEVEL=1"]
cmake.parallel = false

ninja.make-fallback = true
sdist.cmake = true
Expand Down
2 changes: 1 addition & 1 deletion scripts/setPythonLibCompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
with open("../pyproject.toml", "r") as pyproj:
for line in pyproj.readlines():
if line.startswith("cmake.args"):
text += f'cmake.args = ["-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_C_COMPILER={args.ccompiler}", "-DCMAKE_CXX_COMPILER={args.cxxcompiler}"]\n'
text += f'cmake.args = ["-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_PARALLEL_LEVEL=1", "-DCMAKE_C_COMPILER={args.ccompiler}", "-DCMAKE_CXX_COMPILER={args.cxxcompiler}"]\n'
else:
text += line

Expand Down
3 changes: 2 additions & 1 deletion scripts/tmp/pyprojectTemplate.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ build-backend = "scikit_build_core.build"
[tool.scikit-build]

cmake.build-type = "Release"
cmake.args = ["-DCMAKE_BUILD_TYPE=Release"]
cmake.args = ["-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_PARALLEL_LEVEL=1"]
cmake.parallel = false

ninja.make-fallback = true
sdist.cmake = true
Expand Down

0 comments on commit 1a5469e

Please sign in to comment.