Skip to content

Instantly share code, notes, and snippets.

@anshumang
anshumang / multi-hop-tcp-bulk-send.cc
Created October 1, 2016 16:30
Extending ns-3 tcp bulk send over multiple hops
{
NodeContainer nodes;
nodes.Create (2);
NodeContainer nodes1;
nodes1.Add (nodes.Get (1));
nodes1.Create (1);
PointToPointHelper pointToPoint;
NetDeviceContainer devices, devices1;
../../lib/libnnforge.a(average_subsampling_layer.o): In function `google::protobuf::internal::GetEmptyStringAlreadyInited()':
/usr/local/include/google/protobuf/generated_message_util.h:84: undefined reference to `google::protobuf::internal::empty_string_'
/usr/local/include/google/protobuf/generated_message_util.h:85: undefined reference to `google::protobuf::internal::empty_string_'
../../lib/libnnforge.a(average_subsampling_layer.o): In function `CreateInternal<nnforge::protobuf::AverageSubsamplingParam_AverageSubsamplingDimensionParam>':
/usr/local/include/google/protobuf/arena.h:633: undefined reference to `google::protobuf::Arena::AllocateAligned(std::type_info const*, unsigned long)'
/usr/local/include/google/protobuf/arena.h:635: undefined reference to `google::protobuf::Arena::AddListNode(void*, void (*)(void*))'
../../lib/libnnforge.a(convolution_layer.o): In function `CreateInternal<nnforge::protobuf::ConvolutionalParam_ConvolutionalDimensionParam>':
/usr/local/include/google/protobuf/arena.h:633:
@anshumang
anshumang / nnforge_build.txt
Created November 18, 2015 17:52
stderr log from running make under nnforge/
[libprotobuf WARNING google/protobuf/compiler/parser.cc:492] No syntax specified for the proto file. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:492] No syntax specified for the proto file. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
In file included from /usr/include/c++/4.8/random:35:0,
from nn_types.h:20,
from backward_propagation.h:19,
from backward_propagation.cpp:17:
/usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from /usr/include/c++/4.8/random:35:0,
@anshumang
anshumang / swsched.txt
Last active October 7, 2015 22:40
Launch using command to super kernel
Command sent *BEFORE* launching the super kernel
----------------------------------------------
mergeSortShared 16384 512 11723
H2D Flag write pre 12
super_kernel 603
64531162 64531851
73312865
Command sent *AFTER* launching the super kernel
----------------------------------------------
/**
* Copyright 2013 Axel Huebl, Felix Schmitt, Heiko Burau, Rene Widera
*
* This file is part of PIConGPU.
*
* PIConGPU is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
@anshumang
anshumang / gist:b8020c82f304f3505f77
Created August 31, 2015 22:24
picongpu_dev_adios_1_9_0.txt
-- Found 'adios_config': /opt/data1/share/users/anshuman/adios-installs/adios-1.9.0/bin/adios_config
-- ADIOS linker flags (unparsed): -L/opt/data1/share/users/anshuman/adios-installs/adios-1.9.0/lib -ladios -L/opt/data1/share/users/anshuman/mxml/lib -L/usr/lib/x86_64-linux-gnu//lib64 -lm -lmxml -lpthread -libverbs -lz
-- Found adios in /opt/data1/share/users/anshuman/adios-installs/adios-1.9.0/lib/libadios.a
-- ADIOS: Could NOT find library 'inux-gnu'
-- Found m in /usr/lib/x86_64-linux-gnu/libm.so
-- Found mxml in /opt/data1/share/users/anshuman/mxml/lib/libmxml.so
-- Found pthread in /usr/lib/x86_64-linux-gnu/libpthread.so
-- Found ibverbs in /usr/lib/libibverbs.so
-- Found z in /usr/lib/x86_64-linux-gnu/libz.so
-- Could NOT find ADIOS (missing: ADIOS_LIBRARIES ADIOS_INCLUDE_DIRS) (found suitable version "1.9.0", minimum required is "1.9.0")
@anshumang
anshumang / gist:1f37b2ca34e588cfaae5
Created August 31, 2015 15:41
calc_utilization
filenames <- dir()
for(k in 1:length(filenames))
{
ts<-read_fwf(filenames[k],fwf_positions(c(1,17), c(15,31)))
colnames(ts) <- c("start", "end")
ts<-mutate(ts,busy = end - start, idle = start - lag(end), lidle = log10(idle), lbusy = log10(busy))
ts_idle <- ts$idle[order(ts$idle,na.last=TRUE)]
init_done_pos <- which(ts$idle==ts_idle[length(ts_idle)-3])+1
cat(filenames[k],sum(ts$idle[init_done_pos:nrow(ts)],na.rm=TRUE)/(ts$end[nrow(ts)] - ts$start[init_done_pos]),sum(ts$busy[init_done_pos:nrow(ts)])/(ts$end[nrow(ts)] - ts$start[init_done_pos]),"\n")
@anshumang
anshumang / gist:c0511de30ebf2b49d5f4
Created August 31, 2015 15:18
PIConGPU_CUPTI_async_activity_profiling.cu
void CUPTIAPI return_buffer(CUcontext ctx, uint32_t stream_id, uint8_t *buffer, size_t size, size_t valid_size)
{
CUptiResult status;
CUpti_Activity *record = NULL;
if (valid_size > 0) {
do {
status = cuptiActivityGetNextRecord(buffer, valid_size, &record);
if (status == CUPTI_SUCCESS) {
if((record->kind == CUPTI_ACTIVITY_KIND_CONCURRENT_KERNEL)||(record->kind == CUPTI_ACTIVITY_KIND_KERNEL))
@anshumang
anshumang / gist:2615224496a5a08243ec
Created August 28, 2015 02:32
cmake-3.1.0-interactive-session
anshuman@titan-login4:~/ComputationalRadiationPhysics/picongpu-repos/08-25-2015/builds/0007> make VERBOSE=1 -j12
/autofs/nccs-svm1_sw/xk6/cmake3/3.1.0/sles11.1_gnu4.3.4/bin/cmake -H/ccs/home/anshuman/ComputationalRadiationPhysics/picongpu-repos/08-25-2015/picongpu -B/ccs/home/anshuman/ComputationalRadiationPhysics/picongpu-repos/08-25-2015/builds/0007 --check-build-system CMakeFiles/Makefile.cmake 0
/autofs/nccs-svm1_sw/xk6/cmake3/3.1.0/sles11.1_gnu4.3.4/bin/cmake -E cmake_progress_start /ccs/home/anshuman/ComputationalRadiationPhysics/picongpu-repos/08-25-2015/builds/0007/CMakeFiles /ccs/home/anshuman/ComputationalRadiationPhysics/picongpu-repos/08-25-2015/builds/0007/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/autofs/nccs-svm1_home1/anshuman/ComputationalRadiationPhysics/picongpu-repos/08-25-2015/builds/0007'
make -f build_picongpu/CMakeFiles/picongpu.dir/build.make build_picongpu/CMakeFiles/picongpu.dir/depend
make -f build_picongpu/build_cuda_memtest/CMakeFiles
/autofs/nccs-svm1_sw/xk6/cmake3/3.1.0/sles11.1_gnu4.3.4/bin/cmake -H/ccs/home/anshuman/ComputationalRadiationPhysics/picongpu-repos/08-25-2015/picongpu -B/ccs/home/anshuman/ComputationalRadiationPhysics/picongpu-repos/08-25-2015/builds/0003 --check-build-system CMakeFiles/Makefile.cmake 0
/autofs/nccs-svm1_sw/xk6/cmake3/3.1.0/sles11.1_gnu4.3.4/bin/cmake -E cmake_progress_start /ccs/home/anshuman/ComputationalRadiationPhysics/picongpu-repos/08-25-2015/builds/0003/CMakeFiles /ccs/home/anshuman/ComputationalRadiationPhysics/picongpu-repos/08-25-2015/builds/0003/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/autofs/nccs-svm1_home1/anshuman/ComputationalRadiationPhysics/picongpu-repos/08-25-2015/builds/0003'
make -f build_picongpu/CMakeFiles/picongpu.dir/build.make build_picongpu/CMakeFiles/picongpu.dir/depend
make -f build_picongpu/build_cuda_memtest/CMakeFiles/cuda_memtest.dir/build.make build_picongpu/build_cuda_memtest/CMakeFiles/cuda_memtest.dir/depend
make -f build_p