Coder Social home page Coder Social logo

0xa48rx394r83e9 / m1parallel Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 14 KB

M1Parallel is a high-performance, parallel computing library designed specifically for Apple Silicon (M1) devices. It provides a set of APIs and tools to leverage the power of parallel computing paradigms, including shared memory parallelism, distributed memory parallelism, and task parallelism.

C 100.00%

m1parallel's Introduction

M1Parallel

M1Parallel is a high-performance, parallel computing library designed specifically for Apple Silicon (M1) devices. It provides a set of APIs and tools to leverage the power of parallel computing paradigms, including shared memory parallelism, distributed memory parallelism, and task parallelism.

Features

  • Shared Memory Parallelism: Utilize multiple cores on a single device using pthreads for efficient parallel execution.
  • Distributed Memory Parallelism: Harness the power of multiple devices using Message Passing Interface (MPI) for distributed computing.
  • Task Parallelism: Easily express and execute parallel tasks using a simple and intuitive task-based programming model.
  • Compatibility: Seamlessly integrate with existing parallel programming standards such as OpenMP and MPI.
  • Optimized for Apple Silicon: Leveraging the unique capabilities of M1 devices to achieve optimal performance.

File Structure

.
├── README.md
├── examples
│   ├── distributed_memory_example.c
│   ├── shared_memory_example.c
│   └── task_parallelism_example.c
├── include
│   └── parallel_lib
│       ├── distributed_memory
│       │   └── mpi_wrapper.h
│       ├── parallel_lib.h
│       ├── shared_memory
│       │   └── parallel_for.h
│       └── task_parallelism
│           └── task.h
└── src
    ├── distributed_memory
    │   └── mpi_wrapper.c
    ├── shared_memory
    │   └── parallel_for.c
    └── task_parallelism
        └── task.c

Usage

Here's a simple example that demonstrates how to use M1Parallel for shared memory parallelism (more examples are provided in the examples folder):

#include <stdio.h>
#include "parallel_lib/shared_memory/parallel_for.h"

void print_number(int num) {
    printf("Number: %d\n", num);
}

int main() {
    parallel_for(0, 10, print_number);
    return 0;
}

m1parallel's People

Stargazers

0xa48rx394r83e9 avatar

Watchers

0xa48rx394r83e9 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.