Skip to content

Instantly share code, notes, and snippets.

View srinivasyadav18's full-sized avatar

Srinivas Yadav srinivasyadav18

  • STE||AR GROUP
View GitHub Profile
Static configuration:
---------------------
Core library:
HPX_WITH_LOGGING=ON
HPX_WITH_DYNAMIC_HPX_MAIN=ON
HPX_WITH_DISTRIBUTED_RUNTIME=ON
HPX_WITH_IO_COUNTERS=ON
HPX_WITH_DATAPAR_VC=ON
HPX_WITH_DATAPAR=ON
HPX_WITH_AUTOMATIC_SERIALIZATION_REGISTRATION=ON
#include <Vc/IO>
#include <Vc/Vc>
#include <hpx/hpx.hpp>
#include <hpx/hpx_init.hpp>
#include <omp.h>
#include <algorithm>
#include <chrono>
I still did not get clarity about unseq.
I am clear that datapar/dataseq is about using simd or
some kind vector intrinsics and provide vectorization.
But what does unseq do?
could you elobarate on this
--> "while unseq leaves the vectorization to the compiler"
@srinivasyadav18
srinivasyadav18 / file.cpp
Created April 25, 2021 15:20
Function object parameters
/*
I have a function object or function F (given by user).
I want to calculate number of parameters that F takes.
Or I want to store parameters in parameter pack
Or apply some operations on parameters like,
check if first parameter (or nth parameter) is ref or
const ref or value etc..
*/