This is a quick note on how to get openmp to work with clang 3.7
They key is to include omp.h in the file,
go to openmp directory, cmake and then make, make sure you have the following two files
Add omp.h to your include path and libomp.so to LD_LIBRARY_PATH
one other weird note is that instead of using -fopenmp flag, I had to use -fopenmp=libomp instead. Otherwise, I will be able to compile the openmp program, however, no matter what I do, I can only use a single thread. That is mp_get_num_threads() always return 1, even in parallel region, even when mp_get_num_procs() returns 48.