Skip to content

lazy-eggplant/omp-stub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sourced from here.
It inherits the same licence as its parent source.

It was moved to its own repo to simplify its interoperability with the packages system of xmake.
Basically, if your platform has no support for OpenMP (like basic wasm targets), or you just want to disable it for whatever reasons, this is a stub exposing the same minimal interface but with no functionality attached.

Also kind of useful if you want to bootstrap your own implementation for embedded firmware not based on linux.

Example of integration via package file:

package("omp-stub")
    set_homepage("https://github.com/lazy-eggplant/omp-stub")
    set_description("Simple stub for OpenMP, to avoid refactoring code")
    set_license("OpenMP Architecture Review Board")

    add_urls("https://github.com/lazy-eggplant/omp-stub.git")

    on_install(function (package)
        import("package.tools.xmake").install(package)
    end)

    on_test(function (package)
        assert(package:check_cxxsnippets({test = [[
            #include <omp.h>
            void test() { /* use library API */ }
        ]]}, {configs = {languages = "c11"}}))
    end)

About

Simple stub for OpenMP, to avoid refactoring code

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors