Skip to content

Commit

Permalink
Merge pull request #8 from saudzahirr/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
saudzahirr authored Mar 22, 2024
2 parents 766ddd0 + 77afe2b commit 3b8ec1d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 24 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dist/
build/
lib/

_version.py
*.log


Expand Down
15 changes: 14 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,18 @@ channels:
dependencies:
- python=3.11
- pip
- wheel
- setuptools
- scikit-build
- requests
- numpy
- scipy
- pandas
- matplotlib
- plotly
- psutil
- ruff
- pytest
- tqdm
- pip:
- -r requirements.txt
- - -r requirements.txt
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[build-system]
requires = ["setuptools", "wheel"]
requires = ["setuptools", "setuptools_scm", "wheel"]

[tool.setuptools_scm]
version_file = "src/_version.py"
13 changes: 0 additions & 13 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
importlib-metadata; python_version < "3.10"
wheel
setuptools
scikit-build
requests
numpy
scipy
pandas
matplotlib
plotly
psutil
ruff
pytest
tqdm
10 changes: 1 addition & 9 deletions src/eigenlib/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,6 @@ string getCMakeVersion() {
return executeCommand("cmake --version");
}

int get_num_of_threads() {
#ifdef _WIN32
return thread::hardware_concurrency();
#else
return omp_get_thread_num();
#endif
}

void logSystemInfoOnce() {
static bool systemInfoLogged = false;
if (!systemInfoLogged) {
Expand All @@ -127,7 +119,7 @@ void logSystemInfoOnce() {

string systemInfo = "CMake Version: " + getCMakeVersion() + "\n" +
+ "G++ Version: " + getGPPVersion() + "\n" +
+ "OMP max threads: " + to_string(get_num_of_threads());
+ "OMP max threads: " + to_string(omp_get_max_threads());

ofstream logFile("vonMises.log", ios::out);
if (logFile.is_open()) {
Expand Down

0 comments on commit 3b8ec1d

Please sign in to comment.