Hi everyone, I am developing a module to find OpenACC. If I want the user to provide inputs to select GPU targets, and use that input in the find module to provide the correct flag for the user, what is the best practice to do that? For example, PGI compilers use -ta=tesla or -ta=multicore to select targets. It would be great if the user can specify the target without having to add the flag manually.
Should I have the user set a definition before using find_package and checking for that definition? Should I simply have the user add the relevant flags themselves? Should I provide some variable that would contain the correct flag so the user can use it to append to his flags? Thank you in advance! Tin Huynh
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers