Skip to content

Instantly share code, notes, and snippets.

View NK-Nikunj's full-sized avatar

Nikunj Gupta NK-Nikunj

View GitHub Profile
[nikugupta@fj037 build]$ cmake -DCMAKE_PREFIX_PATH=$HOME/install/boost -DCMAKE_INSTALL_PREFIX=$HOME/install/hpx -DCMAKE_BUILD_TYPE=Release -DHPX_WITH_CXX_STANDARD=20 -DHPX_WITH_MALLOC=system -DHPX_WITH_GENERIC_CONTEXT_COROUTINES=ON -DHPX_WITH_FETCH_ASIO=ON ..
-- The CXX compiler identification is GNU 11.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /lustre/software/gcc/11.2.0/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using C++20
-- CMake version: 3.22.1
-- HPX version: 1.8.0
@NK-Nikunj
NK-Nikunj / AW_fan_control.sh
Created August 8, 2020 01:36 — forked from codexetreme/AW_fan_control.sh
Alienware Fan Control Script for Ubuntu
#!/bin/bash
# Script to turn on fans, tested only for dell alienware 15 laptop
# Works on Ubuntu 18.04, causes issues with other drivers on earlier verisons
# Requires i8kutils, lm_sensors and fancontrol packages
sudo modprobe dell-smm-hwmon force=1
sudo pwmconfig
@NK-Nikunj
NK-Nikunj / cmake
Created April 10, 2020 22:46
error log
gupta2@juawei-a17:~/src/nsimd_arm/build(master)$ cmake -DSIMD=AARCH64 -DCMAKE_INSTALL_PREFIX=$HOME/install/arm/nsimd_working -DCMAKE_CXX_COMPILER=armclang++ -DCMAKE_C_COMPILER=armclang ..
-- The C compiler identification is Clang 7.1.0
-- The CXX compiler identification is Clang 7.1.0
-- Check for working C compiler: /opt/ohpc/pub/ARM/opt/arm/arm-hpc-compiler-19.3_Generic-AArch64_RHEL-7_aarch64-linux/bin/armclang
-- Check for working C compiler: /opt/ohpc/pub/ARM/opt/arm/arm-hpc-compiler-19.3_Generic-AArch64_RHEL-7_aarch64-linux/bin/armclang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /opt/ohpc/pub/ARM/opt/arm/arm-hpc-compiler-19.3_Generic-AArch64_RHEL-7_aarch64-linux/bin/armclang++
1. Copy Boost 1.66 from
2. Run: ./bootsrap --prefix=<Install Path> --with-toolset=gcc
3. Run: ./b2 install --prefix=/home/ngupta/install/gcc/Debug/boost --build-dir=/home/ngupta/build/gcc/Debug/boost --layout=tagged toolset=gcc variant=debug -j$(nproc)
4. Copy hwloc 2.1 from
5. Run: ./configure --prefix=/home/ngupta/install/gcc/Debug/hwloc CC=gcc CXX=g++
6. Run: make -j$(nproc) install
7. Copy gperftools using `git clone https://github.com/gperftools/gperftools`
8. Run: ./autogen.sh
@NK-Nikunj
NK-Nikunj / main.cpp
Last active January 9, 2020 21:57
Basic non working MPI program
#include <mpi.h>
#include <iostream>
int main(int argc, char ** argv)
{
MPI_Init(&argc, &argv);
MPI::COMM_WORLD.Set_errhandler ( MPI::ERRORS_THROW_EXCEPTIONS );
try{
@NK-Nikunj
NK-Nikunj / cmake config
Last active December 31, 2019 21:56
hpx output for make
[stellar@0be62defaec5 build]$ cmake -DHPX_WITH_MALLOC=system -DHPX_WITH_PARCELPORT_MPI=ON -DHPX_WITH_PARCELPORT_TCP=OFF ..
-- CMake version: 3.16.1
-- HPX version: 1.4.0
-- No vectorization library configured
-- Native TLS is enabled.
-- Nice threadlevel is disabled.
-- Stack traces are enabled.
-- Compiling with the native toolset
-- C++ mode used: C++17
-- Performing Test HPX_WITH_CXX11_ALIAS_TEMPLATES - pre-set to TRUE
@NK-Nikunj
NK-Nikunj / Dockerfile
Last active January 19, 2020 02:50
Dockerfile to build Flecsi with the refactor branch
# Copyright (c) 2019 R. Tohid
# Copyright (c) 2019 N. Gupta
#
# Distributed under the Boost Software License, Version 1.0. (See a copy at
# http://www.boost.org/LICENSE_1_0.txt)
FROM fedora:latest
# Install Packages
RUN dnf -y update
==> Installing flecsi
==> Searching for binary cache of flecsi
==> Warning: No Spack mirrors are currently configured
==> No binary for flecsi found: installing from source
==> Warning: There is no checksum on file to fetch flecsi@hpx safely.
==> Fetch anyway? [y/N] y
==> Fetching with no checksum.
Add a checksum or use --no-checksum to skip this check.
==> No need to fetch for DIY.
==> Sources for DIY stages are not cached
@NK-Nikunj
NK-Nikunj / console_output.txt
Created November 1, 2019 13:14
Phylanx build output with hpx_setup_target
nk@ubuntu:~/builds/phylanx/build2$ cmake -DCMAKE_INSTALL_PREFIX=/home/nk/opt/phylanx -DHPX_DIR=/home/nk/opt/hpx/lib/cmake/HPX -Dpybind11_DIR=/home/nk/opt/pybind11/share/cmake/pybind11/ ..
-- The C compiler identification is Clang 7.0.0
-- The CXX compiler identification is Clang 7.0.0
-- Check for working C compiler: /usr/bin/clang-7
-- Check for working C compiler: /usr/bin/clang-7 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++-7
@NK-Nikunj
NK-Nikunj / console_output.txt
Created October 31, 2019 20:04
make output
nk@ubuntu:~/builds/phylanx/build$ make VERBOSE=1 -j4
/usr/bin/cmake -H/home/nk/builds/phylanx -B/home/nk/builds/phylanx/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/nk/builds/phylanx/build/CMakeFiles /home/nk/builds/phylanx/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/nk/builds/phylanx/build'
make -f src/CMakeFiles/phylanx_component.dir/build.make src/CMakeFiles/phylanx_component.dir/depend
make[2]: Entering directory '/home/nk/builds/phylanx/build'
cd /home/nk/builds/phylanx/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/nk/builds/phylanx /home/nk/builds/phylanx/src /home/nk/builds/phylanx/build /home/nk/builds/phylanx/build/src /home/nk/builds/phylanx/build/src/CMakeFiles/phylanx_component.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/nk/builds/phylanx/build'
make -f src/CMakeFiles/phylanx_component.dir/build.make src/CMakeFiles/phylanx_component.dir/build