Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Problem #88

Closed
Phorbol opened this issue Jun 13, 2022 · 2 comments
Closed

Install Problem #88

Phorbol opened this issue Jun 13, 2022 · 2 comments

Comments

@Phorbol
Copy link

Phorbol commented Jun 13, 2022

I can't install it by setup.py because of simple_nn\features\symmetry_function\symmetry_functions.h(76): error C3861: “sincos”: Could not find the identifier.I want know what is 'sincos' and how to slove the problem.Thank you.
LM_B$A@)1@ OB3Q1$7EXIX

And this is the relevant part of symmetry_functions.h.
E@G45WWIEY_MW733R}4AP5L

@JisuJung928
Copy link
Member

Hello, Organicwrq

Currently, SIMPLE-NN supports only the Linux operation systems.
If you use Windows OS, please use SIMPLE-NN through WSL (Windows Subsystem for Linux).

Best regards,
Jisu.

@LateButSteady
Copy link
Contributor

LateButSteady commented Dec 27, 2023

@Phorbol, it seems that you are running the code in windows, which does not "sincos" function.
Here is an example code in symmetry_functions.h file to replace "sincos" function in windows. This works in the same with "sincos"

// sincos(M_PI*frac, &sin, &cos);
// f = 0.5 * (1 + cos);
// df = -0.5 * M_PI * sin / cutd;

sin_val = sin(M_PI*frac);
cos_val = cos(M_pi*frac);
f = 0.5 * (1 + cos_val);
df = -0.5 * M_PI * sin_val / cutd;

JisuJung928 added a commit that referenced this issue Dec 29, 2023
Enabling setup.py installation in Windows (Following issue #113, #88)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants