First commit: introducing main_compile_MS_gpu, integrating a gpuArray for gpu computation