KhronosGroup / OpenVX-sample-impl

OpenVX sample implementation
Apache License 2.0
139 stars 47 forks source link

Regarding FIND_NUM_PROCESSORS() in OpenVX-sample-impl/cmake_utils/CMakeFuncs.txt #40

Open balaji-ch opened 3 years ago

balaji-ch commented 3 years ago
FIND_NUM_PROCESSORS()
if ( ${PROCESSOR_COUNT} LESS "1" )
        message(FATAL_ERROR "Num processors found is " ${PROCESSOR_COUNT})
endif ( ${PROCESSOR_COUNT} LESS "1" )
add_definitions( -DTARGET_NUM_CORES=${PROCESSOR_COUNT} )

When cross compiling wouldn't this take the PROCESSOR_COUNT rather than the target machine?