4e7b1cdbd2
This change is required by rocBLAS and rocFFT for OpenMP issue since cmake needs to treat .cpp file as C++ program to detect OpenMP support. This is to match nvcc behavior, speed up compilation of C++ programs, and fix some compilation issue where C++ programs are compiled as HIP programs. Currently it is controlled by an environment variable HIP_COMPILE_CXX_AS_HIP. By default it is 1, where hipcc treats .cpp files as HIP programs. If it is set to 0, hipcc will treat .cpp files as C++ programs. This is because some math libraries are still not ready for the change, however rocBLAS and rocFFT require this feature for OpenMP, therefore put it under an environment variable so that rocBLAS and rocFFT can use it. Change-Id: I56a51e27079df850ee39d4217fb647c22d79f612