Sunbuyu / parrallel-computing

parrallel-computing practice project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parrallel-computing

parrallel-computing practice project

Preface

This is simple cases I wrote in my hpc class. C/C++ or Fortran language used here.

Configuration of Environment

I am using VS Code, it is easy to configurate the environment.

  1. Use homebrew to insall openmpi.
brew install openmpi
  1. Include your openmpi include directory in c_cpp_properties.json file located in .vscode sub dir of your current working directory.
{
    "configurations": [
        {
            "name": "Mac",
            "includePath": [
                "${workspaceFolder}/**",
                "/opt/homebrew/include"  // Where your cpp head files are located.
            ],
            "defines": [],
            "macFrameworkPath": [],
            "compilerPath": "/opt/homebrew/bin/mpicc", // 
            "cStandard": "c11",
            "cppStandard": "gnu++17",
            "intelliSenseMode": "macos-clang-arm64",
            "configurationProvider": "ms-vscode.makefile-tools"
        }
    ],
    "version": 4
}

About

parrallel-computing practice project

License:GNU General Public License v3.0


Languages

Language:C 79.7%Language:Fortran 14.4%Language:C++ 4.7%Language:Makefile 0.7%Language:CMake 0.5%