Comments (7)
Hello,
this error does not seem related to this project but rather how to link openmp to a compiler in mac.
I found this issue, that you may find of interest : microsoft/LightGBM#3
My first guess would be to try to change the setup.py at line 26 so that the extra_compile_arg['cxx'] is
-openmprather than
-fopenmp` .
from pytorch-correlation-extension.
Thanks for your reply. I changed -fopenmp
to -openmp
. Now there are two more errors:
clang: error: no such file or directory: 'build/temp.macosx-10.9-x86_64-3.6/Correlation_Module/correlation.o'
clang: error: no such file or directory: 'build/temp.macosx-10.9-x86_64-3.6/Correlation_Module/correlation_sampler.o'
error: command 'clang++' failed with exit status 1
I found the two underlying cpp
files under Correlation_Module
. How should I get them compiled?
Thanks!
from pytorch-correlation-extension.
seems like some interferences with you previous attempt at building. I'd say completely remove the build folder and and start over.
from pytorch-correlation-extension.
Thanks for your reply. No it reoccurs even after rebuilding. Here's the whole stdout and stderr (attached build.out.txt). Thanks!
from pytorch-correlation-extension.
I solved the issue by changing back -openmp
to -fopenmp
and installed /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
(as per this answer).
However, when I run python grad_check.py cpu
, it gives another error:
Traceback (most recent call last):
File "check.py", line 8, in <module>
from spatial_correlation_sampler import SpatialCorrelationSampler
File "$VIRTUAL_ENV/lib/python3.6/site-packages/spatial_correlation_sampler-0.1.0-py3.6-macosx-10.9-x86_64.egg/spatial_correlation_sampler/__init__.py", line 1, in <module>
from .spatial_correlation_sampler import SpatialCorrelationSampler, SpatialCorrelationSamplerFunction, spatial_correlation_sample
File "$VIRTUAL_ENV/lib/python3.6/site-packages/spatial_correlation_sampler-0.1.0-py3.6-macosx-10.9-x86_64.egg/spatial_correlation_sampler/spatial_correlation_sampler.py", line 6, in <module>
import spatial_correlation_sampler_backend as correlation
ImportError: dlopen($VIRTUAL_ENV/lib/python3.6/site-packages/spatial_correlation_sampler-0.1.0-py3.6-macosx-10.9-x86_64.egg/spatial_correlation_sampler_backend.cpython-36m-darwin.so, 2): Symbol not found: __Z24correlation_cuda_forwardN2at6TensorES0_iiiiiiiiii
Referenced from: $VIRTUAL_ENV/lib/python3.6/site-packages/spatial_correlation_sampler-0.1.0-py3.6-macosx-10.9-x86_64.egg/spatial_correlation_sampler_backend.cpython-36m-darwin.so
Expected in: flat namespace
in $VIRTUAL_ENV/lib/python3.6/site-packages/spatial_correlation_sampler-0.1.0-py3.6-macosx-10.9-x86_64.egg/spatial_correlation_sampler_backend.cpython-36m-darwin.so
It seems that somehow the cpp file still needs certain cuda component. How to solve it? Thanks for any suggestions!
from pytorch-correlation-extension.
I just pushed changes, you can get the last version (tagged 0.2.0) and try to install with setup_cpu.py
instead of setup.py
from pytorch-correlation-extension.
Thank you so much!
from pytorch-correlation-extension.
Related Issues (20)
- ROCm support?
- Issue with Computing Complete Pixel-to-Pixel Correlation HOT 2
- IndexError: list index out of range HOT 5
- python setup.py install failed HOT 4
- Successfully installed, but unable to import in the code. HOT 4
- System requirements to install spatial-correlation-sampler HOT 1
- Parameters for correlation HOT 2
- Get slower after using correlation extension HOT 2
- Compile once and run on other GPU(different computational capacities) HOT 1
- failed to pip install spatial-correlation-sampler
- failed to python setup.py install HOT 1
- pip install fails with "No CUDA runtime is found" despite existing CUDA toolkit installation HOT 1
- some errors with python setup.py install HOT 1
- python setup.py install failed HOT 1
- Hello,I want to ask python setup.py install failed HOT 3
- OSError: CUDA_HOME environment variable not set when python setup.py in Dockerfile HOT 5
- failed to install spatial-correlation-sampler HOT 1
- torch.compile fullgraph=True HOT 6
- Fail to use "python setup.py install" to install spatial-correlation-sampler HOT 4
- Issues with CUDA 11.7 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch-correlation-extension.