Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
balaji-ch opened this issue Apr 27, 2021 · 0 comments

Comments

@balaji-ch
Copy link

balaji-ch commented Apr 27, 2021

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?

@balaji-ch balaji-ch changed the title Regarding FIND_NUM_PROCESSORS() Regarding FIND_NUM_PROCESSORS() in OpenVX-sample-impl/cmake_utils/CMakeFuncs.txt May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant