added options for compute mode selection through CMake