-
Notifications
You must be signed in to change notification settings - Fork 183
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
Linux: Newton 4.0 #235
Comments
oh, I see. you are try to build with double precision. for now can you try building without option -D NEWTON_DOUBLE_PRECISION:BOOL=1 |
Thanks for the fast reply! With single precision (no double option), I am getting this:
edit: I found NEWTON_ENABLE_AVX was not enabled. Adding that to cmake options, it becomes
|
ah ok, please sync again and line 75, you will fine this
in the UNIX statement need to be uncomments and replace the option for compiling with avx2 in the compiler you are using. since I do no build linux, I do not know but if you get it to work, can you tell me so that I can get it fix. |
I just quickly look it up and I thing for GCC is this you do not need to enable avx, because if you do they the library will assume avx and you will not be able to call it from code that is not 100% avx. please sync and try again. |
A different small issue I have been bypassing: Newton-4 may need some You are correct and the current result is much better.
|
fixed, please sync again. |
|
ok fixed try again please. |
Okay. One more here:
|
fixed, try again. |
|
I though we have that one fixed with this change
|
does teh intrinsic type __m256 is defined different in GCC? |
oh I think I knwo why, in the linux the intrics headers are not included
I now replaced with the general #include <immintrin.h> please sync and try again, hopefully builds this time. |
Progress!
|
it is still the same problem not compiling those avx2 intrinsic. to this please try again. see if that works. |
Correct and thanks again. Next minor..
|
|
ah, for that one in cmake ther are tow define that let boteh avx2 and opencl to be #ifdef out option("NEWTON_ENABLE_AVX" "enable AVX float instructions" OFF) of the two the avx2 is functional and teh fastest solver so far. I am having secund thought about Opencl since is has been advandone but almost every GPU maker, if you sync again, I set OpenCL solve to off by default |
|
ok changed to this |
It feels very close now. Thanks for all your help! I am happy if you like to change focus, I can try a PR for this and look at helping with other issues myself. |
did you getting compiling completely? |
https://github.com/MADEAPPS/newton-dynamics/pulls As you choose, you can pull these into master with or without changes. Also, setting up "Continuous Integration" ( https://github.com/MADEAPPS/newton-dynamics/actions ) can shorten the development cycle by showing build results for all platforms. |
oh I see, you send two pull request, I will review them tonight. |
ok I applied the tow PR, one when without problem, the older one had conflicts, so I apply the changes manually. finally I am curios to know the compiled code run. |
Good to see iSLC's PR made it in. Update of remaining issues here in applications/
|
fixed, try again. |
|
should be defined in ../newton-4.00\applications\ndSandbox\ndSandboxStdafx.h line 120 |
Compile output: https://hastebin.com/aqarocoqen.typescript |
ok fixed, try again |
Built target ndNewton, Built target ndSandbox. 🎆 Thanks for your time! For future reference if one does setup github CI, there is the guide and a working example from Urho3D https://github.com/urho3d/Urho3D/tree/master/.github/workflows Regards |
did you get any of the demos running? |
Yes; at a glance, the demo seems to work as expected. and that's very smooth.. |
oh that's awesome. |
One offtopic: I too have a forum registration with similar username. Thanks in advance. |
what is the user name so that I can activated it. |
|
ok, is activated. |
Thanks for Newton!
When a lot of good work is going on, some dust is expected. :)
For a couple days I am stuck here:
With only single precision, I get
There may be more. This is probably a trivial fix too, but I am still getting up to speed with Newton, and look forward to contributing where I can.
Setting up CI (in Actions) should help catch many errors automatically. #230 (comment)
The text was updated successfully, but these errors were encountered: