-
Notifications
You must be signed in to change notification settings - Fork 90
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
'omp.h' file not found when running setup.py in raisimGymTorch on macOS. #27
Comments
I pushed a fix. I didn't expect anyone will use raisimGym in Mac because there is no gpu support. |
Thanks, the fix seems to work for me. For some reason I needed to manually pass CMAKE_PREFIX_PATH for raisim when calling setup.py:
And it gave me a warning about having two different versions of openMP installed, but I suspect that's a problem on my end. Indeed I'm mostly interested in simply rendering rollouts from policies trained on a more powerful remote machine, although it seems I can do that with just raisimUnity? I haven't got that to work yet but I think I should be able to. |
Passing a CMAKE_PREIX_PATH is a way to do it if you copy the raisimGymTorch folder to other location. In that case, python doesnt know where you installed raisim (unless you installed it globally). Is that the case for you? Duplicate omp issue seems ver common in Mac. I also had an error in running runner.py becasue of that. I added a line in VectorizedEnvironmnent.py to ignore it and it seems to work. You can do it on pure cpp and raisimUnity but It will be more convenient to visualize it in raisimGym. So what you are doing makes sense |
No that's what is strange, I did not move raisimGymTorch, everything should be "standard" I used the same process that on my linux box resulted in cmake knowing where to find raisim automatically. Not a big deal for me though, just something I thought I'd mention, in case other people start seeing that too. For duplicate omp I set KMP_DUPLICATE_LIB_OK=TRUE which cleared up that issue, hopefully that doesn't come back to bite me, as I said I don't plan to do any real training on the mac. (edit: this seems to be what you put into the VectorizedEnvironmnent.py too). |
I'm having the same error when trying to run on an m1 mac. I've tried switching to brew-installed clang (since I installed eigen via brew, and based on this comment), but no luck. Any ideas? |
@sheim I have been digging into this problem for a while. For me, it fails to find OpenMP. Have you tried it with GCC? you can do that by defining |
Just tried, no dice.
which seems to be trying to link through rosetta (x86_64)... but I haven't figured out why/where. That header file is in the arm64 version (brew arm64 goes to |
This is so far what I have figured out
I have a few impending deadlines. I'll look at it again once I have free time. |
Thanks, and no rush, I'm also looking at this only on the weekend, and working on ubuntu otherwise. |
Hello,
I've been experimenting with RaiSim over the last week, I appreciate the work you've put in and the permissive academic license. On linux I've gotten everything to work fine, however I have run into an issue when using raisimGymTorch on macOS. raisimLib builds fine and I can run examples, the issue is when I run "python setup.py develop" in raisimGymTorch.
The relevant part of the error message:
The compiler being used here is the default apple clang for macOS 11.0.1 (this is confirmed by looking at CmakeCache, clang++ --version returns:
I don't think python is the problem, but this is with Python 3.6.9 installed via anaconda.
I've been seeing mixed messages on the state of openMP support with the built in MacOS utilities. Do you have any insight into this? Is there a dependency I am missing? Thanks very much.
The text was updated successfully, but these errors were encountered: