Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Ankit Goyal goyalankit

🏠
Working from home
View GitHub Profile
View dockercon
dockerswarm
----
highly available, fault tolerant. replacing kubernates?
docker service
--------
- labels to target hosts. using constraints.
View swim_rose_error
macpo: ../../../../src/frontend/OpenFortranParser_SAGE_Connection/FortranParserActionROSE.C:6392: void c_action_common_block_object_list(int): Assertion `(*(FortranParserState::getCurrentExpressionStack())).size() == (size_t) count' failed.
/work/02681/ankitg/installs/perfexpert_install/bin/macpo.sh: line 131: 27212 Aborted /work/02681/ankitg/installs/perfexpert_install/bin/macpo -rose:openmp:ast_only -I/work/02681/ankitg/installs/perfexpert_install/include -g -O0 -I/work/02681/ankitg/installs/perfexpert_install/include -g -L/work/01174/ashay/apps/binutils/lib --macpo:disable-sampling --macpo:instrument=SHALOW --macpo:dynamic_inst swim.f -L/work/02681/ankitg/installs/perfexpert_install/lib -L/work/02681/ankitg/installs/libelf/lib -Wl,-rpath=/work/02681/ankitg/installs/libelf/lib -lmrt -lstdc++ -ldl -rdynamic -lelf -lbfd -liberty -lz -lset -lhwloc -L/work/02681/ankitg/installs/perfexpert_install/lib -L/work/02681/ankitg/installs/libelf/lib -Wl,-rpath=/work/02681/ankitg/installs/libelf/lib -lmrt
View CoMD_perf_output
Loop in function ljForce.omp_fn.1 in ljForce.c:191 (96.79% of the total runtime)
===============================================================================
ratio to total instrns % 0..........25..........50..........75..........100
- floating point 68.0 **********************************
- data accesses 29.9 ***************
* GFLOPS (% max) 12.5 ******
- packed 0.0
- scalar 12.5 ******
-------------------------------------------------------------------------------
performance assessment LCPI good.......okay........fair........poor........bad
View process.rb
require 'rubygems'
require 'mongo'
require 'pry'
require 'json'
bus_h = File.read("yelp_academic_dataset_business.json").split("\n").map { |line| JSON.parse(line)}
# hardcording result to save time
top_10_categories_with_numbers = [["Restaurants", 21892], ["Shopping", 8919], ["Food", 7862], ["Beauty & Spas", 4738], ["Bars", 3628], ["Health & Medical", 3213], ["Automotive", 2965], ["Home Services", 2853], ["Fashion", 2566]]
View fb.md
ID ":null,"
bootloadAttachmentsImmediately ":false}],2],["
m_0_1k ",["
ComposerXMediaPostTab ","
m_0_1m "],["
u_0_r ",{"
__m ":"
m_0_1m "}],1],["
m_0_1w ",["
View struct_padding.c
#include <stdio.h>
#define BIT_MASK(a, b) (size_t)(((size_t) -1 >> ((sizeof(size_t)*8) \
- (b))) & ~((1U << (a)) - 1))
unsigned address_to_set(size_t address) {
return ((address & BIT_MASK(6, 12)) >> 6);
}
typedef struct item_t {
View matrix.c
#include <stdio.h>
#define X_1 5
#define Y_1 5
#define X_2 5
#define Y_2 5
#define Z_1 5
#define Z_2 5
View rose_track_ellipse.c
#include "track_ellipse.h"
void ellipsetrack(avi_t *video,double *xc0,double *yc0,int Nc,int R,int Np,int Nf)
{
/*
% ELLIPSETRACK tracks cells in the movie specified by 'video', at
% locations 'xc0'/'yc0' with radii R using an ellipse with Np discrete
% points, starting at frame number one and stopping at frame number 'Nf'.
%
% INPUTS:
View Compiler Errors.md
login1.stampede(120)$ ifort -free -I/work/02681/ankitg/installs/perfexpert_install/include -g -L /work/02681/ankitg/installs/perfexpert_install/binutils/lib -lbfd driver.f  -L/work/02681/ankitg/installs/perfexpert_install/lib -L/work/02681/ankitg/installs/libelf/lib -Wl,-rpath=/work/02681/ankitg/installs/libelf/lib -lmrt -lstdc++ -ldl -rdynamic -lelf -lbfd -lz -c -L/opt/apps/gcc/4.7.1/lib64/ -liberty -c
driver.f(2): error #5082: Syntax error, found '**' when expecting one of: ( % [ : . = =>
c **********************************************************************
--^
driver.f(3): error #5082: Syntax error, found '*' when expecting one of: ( % [ : . = =>
c *                                                                    *
--^
driver.f(4): error #5082: Syntax error, found '*' when expecting one of: ( % [ : . = =>
c *  copyright, 1993, the regents of the university of california.     *