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

Failed to compile utils.cu #4

Open
ground-truth opened this issue Dec 23, 2019 · 1 comment
Open

Failed to compile utils.cu #4

ground-truth opened this issue Dec 23, 2019 · 1 comment

Comments

@ground-truth
Copy link

ground-truth commented Dec 23, 2019

Hi, you did a really excellent work and I want to run the code in my computer but errors appeared. When I compile the utils.cu, there are many errors and I do not find the "equation_construction" and "jacobian_construction" in the utils.cu used in ba.py. The compile errors are as follows, and the tensorflow version is 2.0:
utils.cu(44): error: namespace "Eigen" has no member "CudaStreamDevice"

utils.cu(109): error: member function declared with "override" does not override a base class member

utils.cu(111): error: member function declared with "override" does not override a base class member

utils.cu(109): warning: function "stream_executor::ScratchAllocator::GetMemoryLimitInBytes()" is hidden by "CublasScratchAllocator::GetMemoryLimitInBytes" -- virtual function override intended?

utils.cu(111): warning: function "stream_executor::ScratchAllocator::AllocateBytes(tensorflow::int64)" is hidden by "CublasScratchAllocator::AllocateBytes" -- virtual function override intended?

utils.cu(247): error: object of abstract class type "CublasScratchAllocator" is not allowed:
pure virtual function "stream_executor::ScratchAllocator::GetMemoryLimitInBytes" has no overrider
pure virtual function "stream_executor::ScratchAllocator::AllocateBytes" has no overrider

utils.cu(444): error: object of abstract class type "CublasScratchAllocator" is not allowed:
pure virtual function "stream_executor::ScratchAllocator::GetMemoryLimitInBytes" has no overrider
pure virtual function "stream_executor::ScratchAllocator::AllocateBytes" has no overrider

utils.cu(738): error: object of abstract class type "CublasScratchAllocator" is not allowed:
pure virtual function "stream_executor::ScratchAllocator::GetMemoryLimitInBytes" has no overrider
pure virtual function "stream_executor::ScratchAllocator::AllocateBytes" has no overrider

utils.cu(1088): error: expected a "("

utils.cu(1088): error: expected an expression

utils.cu(1088): error: expected a ")"

utils.cu(1089): error: expected a "("

utils.cu(1089): error: expected an expression

utils.cu(1089): error: expected a ")"

utils.cu(1362): error: expected a "("

utils.cu(1362): error: expected an expression

utils.cu(1362): error: expected a ")"

utils.cu(1363): error: expected a "("

utils.cu(1363): error: expected an expression

utils.cu(1363): error: expected a ")"

utils.cu(1458): error: "static" is not allowed

utils.cu(1615): error: identifier "data_channels" is undefined

utils.cu(1611): warning: variable "out_index" was declared but never referenced

utils.cu(1612): warning: variable "batch_id" was declared but never referenced

utils.cu(1703): error: "static" is not allowed

utils.cu(1829): error: "projection_tensor" has already been declared in the current scope

23 errors detected in the compilation of "/tmp/tmpxft_000064ea_00000000-6_utils.cpp1.ii".

@frobelbest
Copy link
Owner

Hi @ground-truth :
For this compiling issue I have removed some experimental code from the utils.cu.
I should be able to be compiled for now.
I will keep updating the code.
Thanks.

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