Fatal error lnk1104: Unable to open the file ".. \ debug \ cudatest1.cu. OBJ" cudainqtcudainqt

Source: Internet
Author: User

This problem occurs when referring to the code written in the example in the book. There is no other problem. This is the only problem. I think there may be a problem with the Cuda file. What is the problem?

When I was eating today, I thought about the memory model, global memory, and shared memory. I accidentally thought that a block of shared memory is only 16 KB (for me and its graphics card ), the storage space I allocated is 64*64*2. After dividing by 1024, it is only 8 KB, but the data is float (calculated as a byte at first, still need to be clear-headed !), Therefore, it is 32 KB, which exceeds the capacity. The reason for this problem is that the memory size is larger than the actual size. After modification, there will be no errors.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.