0

I have used the code in this link to query the amount of global memory available in my device but the return value is ZERO.

is it possible that there is no global memory (DRAM) on the device?

the output

1 Answer 1

3

is it possible that there is no global memory (DRAM) on the device?

no, not in your case. The 840m has a non-zero amount of global memory, for sure.

The code you linked to is broken because it uses an incorrect format specifier for the global memory variable (%u) when it should be a format specifier for a 64-bit variable (e.g. %lu) here:

printf("Total global memory:           %u\n",  devProp.totalGlobalMem);
                                       ^^

How to query the amount of global memory?

You might be better off running the deviceQuery CUDA sample code , instead.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.