Rate This Document
Findability
Accuracy
Completeness
Readability

kupl_get_kernel_concurrency_local

Retrieves the concurrency value supported when the current thread acts as the main thread to call the memcpy kernel.

Interface Definition

int kupl_get_kernel_concurrency_local();

Return Value

  • Returns the kernel concurrency value of the current thread.
  • If the kernel concurrency value is not set, value returned by kupl_get_kernel_concurrency() is returned.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#include <stdio.h> 
#include "kupl.h" 

int main() 
{ 
    kupl_set_kernel_concurrency_local(2); 
    int num = kupl_get_kernel_concurrency_local();
    printf("local kupl kernel concurrency = %d\n", num); 
    return 0; 
}

The execution result is as follows:

local kupl kernel concurrency = 2
  • The preceding example demonstrates how to set and print the kernel concurrency value of the current thread.
  • The kupl_get_kernel_concurrency_local function retrieves the kernel concurrency value of the current thread.