nvidia - What is a CUDA context? -


can please explain or refer me source cuda context? searched cuda developer guide , not satisfied it.

any explanation or great.

the cuda api exposes features of stateful library: 2 consecutive calls relate one-another. in short, context state.

the runtime api wrapper/helper of driver api. can see in driver api context explicitly made available, , can have stack of contexts convenience. there 1 specific context shared between driver , runtime apu (see primary context)).

the context holds management data control , use device. instance, holds list of allocated memory, loaded modules contain device code, mapping between cpu , gpu memory 0 copy, etc.

finally, note post more experience documentation-proofed.


Comments