Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View satyaki3794's full-sized avatar

Satyaki Upadhyay satyaki3794

View GitHub Profile
int sz[100], par[100];
int root(int v){
if(par[v] == v) return v;
return par[v] = root(par[v]);
}
void unite(int a, int b){
a = root(a), b = root(b);
if(a == b) return;
@satyaki3794
satyaki3794 / gsoc_2016_final_submission.md
Last active July 6, 2017 17:36
Google Summer of Code 2016 Final Submission

Google Summer of Code 2016 Final Project Submission

Project - Plugin mechanism for thread schedulers in HPX

Mentor - Hartmut Kaiser

Schedulers in HPX were statically linked and had to be specified when HPX was built. This project aims to make these dynamically loaded instead. Schedulers can be added as plugins. This has several benefits. It provides a layer of abstraction and follows the open/closed principle of software design (software entities should be open to extension but closed to modification). It also allows developers to use their own custom schedulers if they wish to, while conforming to a uniform API (provided by scheduler_base).
This task is accomplished in two phases -

  1. Generation of the plugin modules (.so files) which are recognized and registered by HPX
  2. Loading of the plugin modules, for subsequent use

List of commits on the [scheduler_plugin](https://github.com/satyaki3794/hpx/tree/sche

# Copyright (c) 2016 Satyaki Upadhyay
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
cmake_minimum_required(VERSION 2.8.4 FATAL_ERROR)
find_package(HPX)
add_hpx_component(sudoku
SOURCE_GLOB "sudoku.cp*"
satyaki3794@satyaki3794-Inspiron-7520:~/Desktop/sudoku$ ./run2.sh
In file included from stubs/sudoku.hpp:15:0,
from sudoku.hpp:12,
from sudoku_client.cpp:14:
stubs/../server/sudoku.hpp:72:26: warning: missing terminating " character [enabled by default]
hpx::cout << "Please enter the initial state of the board
^
stubs/../server/sudoku.hpp:72:13: error: missing terminating " character
hpx::cout << "Please enter the initial state of the board
^