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

Error while running run_local.sh #96

Open
Srutsth opened this issue Jan 19, 2021 · 3 comments
Open

Error while running run_local.sh #96

Srutsth opened this issue Jan 19, 2021 · 3 comments

Comments

@Srutsth
Copy link

Srutsth commented Jan 19, 2021

Hi I am having this problem while running I have built the build file by installing the setup.py, but while running the command
"./run_local.sh YOUR_CS_PATH ccnet 60000 256,256 [0|1]". But I am geeting this error of extra_cuda_cflags= ["--expt-extended-lambda"]). My log is printed here.

1]: command not found
Traceback (most recent call last):
File "train.py", line 14, in
from networks.ccnet import ResNet
File "/home/srutsth/PycharmProjects/PolypCCNet/networks/ccnet.py", line 11, in
from cc_attention.functions import CrissCrossAttention
File "/home/srutsth/PycharmProjects/PolypCCNet/cc_attention/functions.py", line 20, in
extra_cuda_cflags= ["--expt-extended-lambda"])
File "/home/srutsth/miniconda3/envs/myenv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 644, in load
is_python_module)
File "/home/srutsth/miniconda3/envs/myenv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 813, in _jit_compile
with_cuda=with_cuda)
File "/home/srutsth/miniconda3/envs/myenv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 847, in _write_ninja_file_and_build
verbose)
File "/home/srutsth/miniconda3/envs/myenv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 904, in _prepare_ldflags
print('Detected CUDA files, patching ldflags')

@speedinghzl
Copy link
Owner

Hi @shrutishrestha Maybe the new branch pure-python could solve the problem. It's a pure python implementation of CCNet and it does not need to be compiled with CUDA.

@johndpope
Copy link

johndpope commented Feb 7, 2021

@speedinghzl
Copy link
Owner

speedinghzl commented Feb 7, 2021

@johndpope Thanks for your reply. I recently have updated the pure-python branch.

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