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

Regarding compilation of nvbio on visualstudio 2013 #5

Open
mmmovania opened this issue Jun 10, 2015 · 0 comments
Open

Regarding compilation of nvbio on visualstudio 2013 #5

mmmovania opened this issue Jun 10, 2015 · 0 comments

Comments

@mmmovania
Copy link

I am writing this post for others who might be facing this as well. I was trying to compile the simplest possible nvbio example given here
http://nvlabs.github.io/nvbio/host_device_page.html

It fails in visualstudio 2013 on windows 8.1 x64 machine with the following errors.
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xutility(371): error : name followed by "::" must be a class or namespace name 1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xutility(372): error : name followed by "::" must be a class or namespace name 1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xutility(373): error : name followed by "::" must be a class or namespace name 1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xutility(375): error : name followed by "::" must be a class or namespace name 1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xutility(376): error : name followed by "::" must be a class or namespace name 1>E:/Codes/GeneSequence/TestnvBio/TestnvBio/kernel.cu(66): error : no suitable user-defined conversion from "nvbio::vector_view<nvbio::uint32 *, nvbio::uint64>" to "nvbio::vector_view<nvbio::uint32, nvbio::uint32>" exists 1>E:\Libraries\nvbio\nvbio/basic/vector_view.h(159): error : expression must have pointer-to-object type 1> kernel.cu

Solution

Change this line
__global__ void my_kernel( nvbio::vector_view<nvbio::uint32> vec)
to this
__global__ void my_kernel( nvbio::vector_view<nvbio::uint32 *, nvbio::uint64> vec)

Is this correction fine?

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

1 participant