Skip to content

Instantly share code, notes, and snippets.

View keichi's full-sized avatar

Keichi Takahashi keichi

View GitHub Profile

Building ADIOS2 on AOBA

The port is available at https://github.com/keichi/ADIOS2 in the ve-port branch. Following are the CMake commands to build it (tested on AOBA-C using NEC C/C++ compiler 3.5.0 and NEC MPI 3.0.0).

Tests pass except for std::span related tests. This is due to the VE's strict alignment requirements.

VE

w/o MPI

#include <cstring>
#include <vector>
#include <ftrace.h>
const int n = 1000000;
const int offset = 1;
void do_memcpy(std::vector<char> &dst, const std::vector<char> &src)
{

Setting up ONOS and Mininet on Ubuntu 22.04

Installing Bazel

curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg
sudo mv bazel-archive-keyring.gpg /usr/share/keyrings
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
sudo apt update && sudo apt install bazel-3.7.2
@keichi
keichi / main.cpp
Last active October 16, 2022 10:11
ncc map::emplace issue
#include <map>
class A
{
public:
A(int a) {}
A(const A &a) = delete;
// A(A&& a) = default;
};
@keichi
keichi / _compile.sh
Last active October 14, 2022 01:28
nld RPATH issue
ncc -fPIC -shared -o libbar.so bar.c
ncc -fPIC -shared -o libfoo.so foo.c -Wl,-rpath,$(pwd) -L. -lbar
ncc main.c -Wl,-rpath,$(pwd) -L. -lfoo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@keichi
keichi / multi_2ve.sh
Last active July 6, 2022 08:03
Multi-VE training using TensorFlow-VE
#! /bin/bash
#PBS -q sx
#PBS -l elapstim_req=00:05:00
#PBS --venode 2
#PBS -S /bin/bash
export VE_OMP_NUM_THREADS=8
cd $PBS_O_WORKDIR
name: Build and publish Docker image
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
diff --git a/cmake/kokkos_arch.cmake b/cmake/kokkos_arch.cmake
index ec18e70a..597f49fb 100644
--- a/cmake/kokkos_arch.cmake
+++ b/cmake/kokkos_arch.cmake
@@ -95,6 +95,9 @@ ENDIF()
#------------------------------- KOKKOS_CUDA_OPTIONS ---------------------------
#clear anything that might be in the cache
GLOBAL_SET(KOKKOS_CUDA_OPTIONS)
+
+GLOBAL_APPEND(KOKKOS_CUDA_OPTIONS "-arch=sm_60")