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

bc::device_tag problem!!! #56

Open
xinsuinizhuan opened this issue Dec 27, 2019 · 12 comments
Open

bc::device_tag problem!!! #56

xinsuinizhuan opened this issue Dec 27, 2019 · 12 comments

Comments

@xinsuinizhuan
Copy link

when i #define CUDACC 1, then use the mnist_test_recurrent, compile it, so many errors:
图片

@josephjaspers
Copy link
Owner

josephjaspers commented Dec 27, 2019

You can't compile CUDA with MSVC.

You need to create a Cuda project (if the project isn't already one)
and then compile the mnist_test.cu (not .cpp).

If you look at the mnist_test.cu all it does is #include "mnist_test.cpp"
however the .cu extension is what tells the NVCC (nvidia cuda compiler)
to generate ptx code (gpu/cuda code).

@xinsuinizhuan
Copy link
Author

I create a cuda runtime project,as:
图片

and add the mnist_test.cu to project, compile it, still so many errors:
图片

how should i do? I want to test the bc::device_tag() speed?

@josephjaspers
Copy link
Owner

I create a cuda runtime project,as:
图片

and add the mnist_test.cu to project, compile it, still so many errors:
图片

how should i do? I want to test the bc::device_tag() speed?

Hmmm...
If you could send me the first errors that will help.

I will try to test windows tonight I will let you know!

@xinsuinizhuan
Copy link
Author

I create a cuda runtime project,as:
图片
and add the mnist_test.cu to project, compile it, still so many errors:
图片
how should i do? I want to test the bc::device_tag() speed?

Hmmm...
If you could send me the first errors that will help.

I will try to test windows tonight I will let you know!
Error info!
error.txt

@josephjaspers
Copy link
Owner

josephjaspers commented Dec 31, 2019

Looks like a weird bug (IE detail shouldn't be ambiguous as its a namespace)
I am installing the newest cuda on my windows-machine and will try to fix it once thats complete.

@xinsuinizhuan
Copy link
Author

Looks like a weird bug (IE detail shouldn't be ambiguous as its a namespace)
I am installing the newest cuda on my windows-machine and will try to fix it once thats complete.

Before, no-cuda project, the project configuration Conformance Mode must be YES, if it was NO, it will also appear a compile error:
blackcat\common.h(166,1): error C2872: 'detail': ambiguous symbol

But the cuda project have no Conformance Mode. I don't know whether it is correlative!

@josephjaspers
Copy link
Owner

I've installed Cuda 10.1 on my Windows machine and am able to reproduce the issue.

I don't have a fix for it but I'm working on it now. (I believe I will have to re-write some parts of the codebase, as the NVCC-Windows version does not support the same set of features as the Linux-NVCC)

@xinsuinizhuan
Copy link
Author

I've installed Cuda 10.1 on my Windows machine and am able to reproduce the issue.

I don't have a fix for it but I'm working on it now. (I believe I will have to re-write some parts of the codebase, as the NVCC-Windows version does not support the same set of features as the Linux-NVCC)

how about them? Are there any new developments?

@josephjaspers
Copy link
Owner

I've installed Cuda 10.1 on my Windows machine and am able to reproduce the issue.
I don't have a fix for it but I'm working on it now. (I believe I will have to re-write some parts of the codebase, as the NVCC-Windows version does not support the same set of features as the Linux-NVCC)

how about them? Are there any new developments?

Working on it now, definitely the next issue to solve.

@josephjaspers
Copy link
Owner

Still working on this issue the windows NVCC is significantly more buggy than the Linux version.

I am receiving a handful of errors that simply do not make sense.
IE "cannot call indirect nonvirtual-base constructor" despite the constructor being a direct base. Its very strange.

@xinsuinizhuan
Copy link
Author

meet this problem, you can refer to other matured projects like caffe and yolo, that they also use the tensor.
like yolo:https://github.com/AlexeyAB/darknet

@josephjaspers
Copy link
Owner

Still working in this issue. I might just wait till the next Cuda release as Cuda on Windows might now be possible without a rewrite of the traits classes. Windows NVCC has difficulty with bc::traits::conditional_detected

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