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: expression must have a constant value #85

Open
crazyblacker opened this issue Mar 3, 2019 · 3 comments
Open

error: expression must have a constant value #85

crazyblacker opened this issue Mar 3, 2019 · 3 comments

Comments

@crazyblacker
Copy link

crazyblacker commented Mar 3, 2019

Hi,everyone:
I am a young graduate student studying video object segmentation. I want to generate some optical flow images as inputs of my net. I have taken two or three days to fix bugs. Now, there is only one bug. But I can not find any useful information to resolve it, please help me. The information for this error when make all is as follows:
/home/songhuihui/usrs/wanglong/flownet2-tf-master/flo-tf-2.7-env/local/lib/python2.7/site-packages/tensorflow/include/absl/strings/str_cat.h(267): error: expression must have a constant value

@Iamanorange
Copy link

#66 (comment)

@crazyblacker
Copy link
Author

crazyblacker commented Mar 3, 2019

@Iamanorange

#66 (comment)

Thank you for your reply. I have add -DNDEBUG to CFLAGS like this:
CFLAGS += -D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES -D__STRICT_ANSI__ -D_GLIBCXX_USE_CXX11_ABI=0 -DNDEBUG
but it isn't helpful. Maybe upgrading from Cuda 8 to 9 can be useful, but I am running my codes on the college's server and don't have root permissions . Is there any other way to resolve the error like modifying Makefile?

@Iamanorange
Copy link

If you still get error: expression must have a constant value, it has no relevance with CUDA.

If you get error: identifier "__shfl" is undefined, I have no idea. Both Docker and Anaconda need root permissions.

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

2 participants