Fundamental programs for understanding multicore system programming using OpenMP and CUDA programming