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

-gencode=arch=compute_21 is not a valid key #180

Closed
aupilot opened this issue Jun 23, 2015 · 3 comments
Closed

-gencode=arch=compute_21 is not a valid key #180

aupilot opened this issue Jun 23, 2015 · 3 comments

Comments

@aupilot
Copy link

aupilot commented Jun 23, 2015

There is (apparently) a bug in vl_compilenn.m

cudaArch = ...
sprintf('-gencode=arch=compute_%s,code=\"sm_%s,compute_%s\" ', ...
arch_code, arch_code, arch_code) ;

in my case (Mac, GeForce GTX 560 Ti) the variable arch_code gets "21". However, "compute_21" is not a valid flag, it must be "compute_20"

This workaround works for me:
cudaArch = ...
sprintf('-gencode=arch=compute_20,code=\"sm_21,compute_20\" ') ;

@CQFIO
Copy link

CQFIO commented Jun 24, 2015

I have a similar problem. I need to change in the same way you suggest.

@lenck
Copy link
Contributor

lenck commented Apr 15, 2016

Duplicate to #143 . Fixed in the current version.

@lenck lenck closed this as completed Apr 15, 2016
@vickykhan89
Copy link

@aupilot how did you change it, could you tell me the specific file. looking forward to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants