EnkiTSExamples - Examples for enkiTS

Overview

Support development of enkiTS through Github Sponsors or Patreon

Become a Patron

enkiTS Logo

enkiTS Examples

Submodules are licensed under their own licenses, see their contents for details

Building

First make sure you've cloned all submodules. On Windows / Mac OS X / Linux with cmake installed, open a prompt in the enkiTS directory and:

  1. mkdir build
  2. cmake ..
  3. either run make or on Windows with Visual Studio open enkiTSExamples.sln

enki Task Scheduler Extended Samples

enkiTS is a permissively licensed C and C++ Task Scheduler for creating parallel programs.

This repository hosts extended examples.

enkiTSRemoteryExample.cpp

This example shows how to use Remotery with enkiTS.

Note that currently in release the sums might be optimized away.

Remotery Screenshot

enkiTSRemoteryExample.c

As above but using the C interface.

enkiTSMicroprofileExample.cpp

This example shows how to use microprofile with enkiTS.

To view context switching on Windows, run the application (or Visual Studio if launching from that) as administrator and set Options->Cswitch Trace->Enable on.

Microprofile Screenshot

License (zlib)

Copyright (c) 2013 Doug Binks

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgement in the product documentation would be appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.
You might also like...
ESP32 S2 USB host with examples.

This new USB host library based is based on changed and hopefully somehow final API from espressif. The idea is to make this library usable with esp-i

Educational material and examples for those interested in learning the C programming language

Learn C Educational material and examples for those interested in learning the C programming language Files: examples.c Various examples of programs w

Set of examples how to use CLion with various unsupported compilers using Custom Defined Compiler feature

About This repository contains: Set of examples how to use CLion with various unsupported compilers using Custom Defined Compiler feature Public set o

Examples and test programs I made while learning the DPDK.

The DPDK Examples (WIP) Description A small repository I will be using to store my progress and test programs from the DPDK, a kernel bypass library v

Voicemeeter Remote API + Source Code Examples

Voicemeeter-SDK Voicemeeter Remote API + Source Code Examples Voicemeeter Remote API provides a set of functions to control Voicemeeter parameters, to

Examples for the "Introduction to programming" course given by me and @bzareva @ Faculty of Mathematics and Informatics, Sofia University (2021/22)

Теми от практикумите по "Увод в програмирането", зимен семестър 2021/2022, спец. "Информатика", група 5 Тема 1 (04.10.2021) : Променливи. Типове проме

Official examples and tools from the JACK project

JACK example tools This repository holds the official JACK example clients and tools, which have been tracked in the example-clients and tools reposit

PicoSystem libraries and examples.

PicoSystem libraries and examples PicoSystem is a pocket sized handheld games console, built around Raspberry Pi's RP2040 chip (that's the little fell

Examples of C extensions in Ruby gems

Ruby C Extensions, Explained Background How To Use This Repository Strategies Strategy 0, "isolated" Strategy 1, "system" Strategy 2a, "packaged_sourc

OTUS C++ course demo day examples

coroutines-epoll-example OTUS C++ course demo day examples Инструкция по сборке Необходимы следующие версии компонентов g++11 cmake = 3.10 git clone

Raspberry Pi Pico SDK Examples

Raspberry Pi Pico SDK Examples Getting started See Getting Started with the Raspberry Pi Pico and the README in the pico-sdk for information on gettin

A repo containing examples of embedded systems based on the STM32 micro-controller.
A repo containing examples of embedded systems based on the STM32 micro-controller.

STM32 Embedded Development A repo containing examples of embedded systems based on the STM32 micro-controller. I use a Nucleo-F446RE and the STM32Cube

The repository contains some examples of pre-trained SNN (Spiking Neural Network) models.

About the Project The repository contains some examples of pre-trained SNN (Spiking Neural Network) models. The models were trained using the MM-BP tr

Useful CMake Examples

CMake Examples Table of Contents Introduction Requirements Installation on Ubuntu Docker Other Links Introduction CMake is a cross-platform open-sourc

CMake: config mode of find_package command (examples)
CMake: config mode of find_package command (examples)

Install Foo Install project Foo in Debug and Release variants (Makefile generator): cmake -HFoo -B_builds/Foo-debug -DCMAKE_BUILD_TYPE=Debug -DCMAKE

Examples of using Hunter package manager to build and run Android application.

Examples of using Hunter package manager to build and run Android application. Requirements Android NDK Go to download page and choose NDK for your pl

A toolchain file and examples using cmake for iOS development

ios-cmake A toolchain file and examples using cmake for iOS development. This is a fork of a similar project found on https://code.google.com/p/ios-cm

Examples of how to connect various Arduino boards to cloud providers.

Arduino Cloud Provider Examples Examples of how to connect various Arduino boards to cloud providers. Related tutorials on Arduino Project Hub: AWS: S

My collection of raylib code examples - For learning the C language with 2D and 3D games.

Raylib-Examples My collection of raylib examples. ( https://www.raylib.com/index.html ) For Raylib Version of 4 april 2020 ( Notepad++ windows install

Comments
  • Update Remotery to fix Linux build

    Update Remotery to fix Linux build

    Currently, the Linux build fails with the following errors:

    /home/macoy/Repositories/enkiTSExamples/Remotery/lib/Remotery.c:5212:84: error: unknown type name ‘CONTEXT’
     5212 | static rmtBool ThreadProfilers_ThreadInCallback(ThreadProfilers* thread_profilers, CONTEXT* context)
          |                                                                                    ^~~~~~~
    /home/macoy/Repositories/enkiTSExamples/Remotery/lib/Remotery.c:5212:84: error: unknown type name ‘CONTEXT’
     5212 | static rmtBool ThreadProfilers_ThreadInCallback(ThreadProfilers* thread_profilers, CONTEXT* context)
          |                                                                                    ^~~~~~~
    

    The fix is to replace CONTEXT with rmtCpuContext. The master branch of Remotery doesn't have this problem. I didn't want to make a PR because I was mainly interested in testing the Microprofile part, so testing the Remotery part with the newest branch wasn't something I wanted to do.

    opened by makuto 3
  • Check if g_Ticks.pTicks was initialized.

    Check if g_Ticks.pTicks was initialized.

    waitStartCallback is called before profilerInit() was called, thus null access will happen. (Due to enkiTS's API design, we cannot call profilerInit before initializing enkiTS)

    This patch checks if g_Ticks was initialized. Apparently it works well.

    opened by syoyo 2
Owner
Doug Binks
Game dev, C++, multithreading, Runtime Compiled C++, voxels, graphics. Co-founder of enkisoftware with @juliettef. Occasionally available for consultancy.
Doug Binks
EnkiTS - A permissively licensed C and C++ Task Scheduler for creating parallel programs. Requires C++11 support.

Support development of enkiTS through Github Sponsors or Patreon enkiTS Master branch Dev branch enki Task Scheduler A permissively licensed C and C++

Doug Binks 1.4k Dec 27, 2022
This the contains the test examples and validator tool for the ISPD2021 Wafer-Scale Physics Modeling contest.

This readme documents information regarding the validator/scorer which will be used for the 2021 ISPD Contest problem: Wafer-Scale Physics Modelling

Cerebras 16 Aug 22, 2022
Basic eBPF examples in Golang using libbpfgo

libbpfgo-beginners Basic eBPF examples in Golang using libbpfgo. Accompanying slides from my talk at GOTOpia 2021 called Beginner's Guide to eBPF Prog

Liz Rice 166 Dec 28, 2022
Examples for individual ROS2 functionalities inc. Subscribers, Publishers, Timers, Services, Parameters. ...

ROS2 examples This example package is meant to explore the possibilities of ROS2 from the point of view of current ROS1 features and how the ROS1 feat

Multi-robot Systems (MRS) group at Czech Technical University in Prague 50 Nov 17, 2022
Libraries and examples to support Pimoroni Pico add-ons in C++ and MicroPython.

Pimoroni Pico Libraries and Examples Welcome to the brave new world of Pico! This repository contains the C/C++ and MicroPython libraries for our rang

Pimoroni Ltd 775 Jan 8, 2023
C++20 modules examples

C++20 Modules Examples This repository contains a number of examples that demonstrate various C++20 modules features and their support in build2. For

The build2 project 43 Jan 9, 2023
Triton Python and C++ client libraries and example, and client examples for go, java and scala.

Triton Client Libraries and Examples To simplify communication with Triton, the Triton project provides several client libraries and examples of how t

Triton Inference Server 228 Jan 5, 2023
Examples for using ONNX Runtime for machine learning inferencing.

Examples for using ONNX Runtime for machine learning inferencing.

Microsoft 394 Jan 3, 2023
Model synthesis is a technique for generating 2D and 3D shapes from examples.

Model Synthesis Model synthesis is a technique for generating 2D and 3D shapes from examples. It is inspired by texture synthesis. Model synthesis was

Paul Merrell 82 Jan 4, 2023
Small beginners C program examples.

Small beginner C programs.

null 23 Oct 8, 2022