Skip to content

Instantly share code, notes, and snippets.

View igauravsehrawat's full-sized avatar

Gaurav igauravsehrawat

View GitHub Profile
@igauravsehrawat
igauravsehrawat / gist:5960325
Created July 9, 2013 19:12
for making fpmpi
.PHONY: all fpmpi
all: $(SHLIB)
$(SHLIB): fpmpi
fpmpi:
(cd pbdPROF/fpmpi; make)
@igauravsehrawat
igauravsehrawat / gist:6009287
Created July 16, 2013 14:33
.sty ??? in latex
./build_pdf.sh
rm: cannot remove `*.aux': No such file or directory
rm: cannot remove `*.bbl': No such file or directory
rm: cannot remove `*.blg': No such file or directory
rm: cannot remove `*.log': No such file or directory
rm: cannot remove `*.out': No such file or directory
rm: cannot remove `*.toc': No such file or directory
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
entering extended mode
(./pbdPROF-guide.Rnw
@igauravsehrawat
igauravsehrawat / gist:6010244
Created July 16, 2013 16:21
dmat related error:
g@G:~/Documents/pbd/pbdDEMO/demo$ mpiexec -np 2 Rscript quantile.r
Loading required package: DBI
Loading required package: DBI
Loading required package: gsubfn
Loading required package: gsubfn
Loading required package: proto
Loading required package: proto
Loading required namespace: tcltk
Loading required namespace: tcltk
Loading Tcl/Tk interface ... Loading Tcl/Tk interface ... done
@igauravsehrawat
igauravsehrawat / gist:6082808
Created July 25, 2013 19:11
rmpi_debugging
g@G:~/Documents/pbd$ sudo R CMD INSTALL Rmpi_PROF \
> --configure-args=" \
> --with-Rmpi-include=/usr/lib/openmpi/include \
> --with-Rmpi-libpath=/usr/lib/openmpi/lib \
> --with-Rmpi-type=OPENMPI \
> --enable-pbdPROF"
* installing to library ‘/home/g/R/x86_64-pc-linux-gnu-library/2.15’
* installing *source* package ‘Rmpi’ ...
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
@igauravsehrawat
igauravsehrawat / gist:6082822
Created July 25, 2013 19:13
rmpi_debugging_2_comparison
g@G:~/Documents/pbd$ sudo R CMD INSTALL Rmpi_PROF
* installing to library ‘/home/g/R/x86_64-pc-linux-gnu-library/2.15’
* installing *source* package ‘Rmpi’ ...
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
@igauravsehrawat
igauravsehrawat / gist:6083313
Created July 25, 2013 20:14
after clean up
g@G:~/Documents/pbd$ R CMD INSTALL Rmpi_PROF
* installing to library ‘/home/g/R/x86_64-pc-linux-gnu-library/2.15’
* installing *source* package ‘Rmpi’ ...
mv: cannot move `/home/g/R/x86_64-pc-linux-gnu-library/2.15/Rmpi' to `/home/g/R/x86_64-pc-linux-gnu-library/2.15/00LOCK-Rmpi_PROF/Rmpi': Permission denied
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
@igauravsehrawat
igauravsehrawat / gist:6083336
Created July 25, 2013 20:16
after clean up with enable-pbdPROF
g@G:~/Documents/pbd$ sudo R CMD INSTALL Rmpi_PROF --configure-args="--enable-pbdPROF"
* installing to library ‘/home/g/R/x86_64-pc-linux-gnu-library/2.15’
* installing *source* package ‘Rmpi’ ...
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
@igauravsehrawat
igauravsehrawat / gist:6099418
Created July 28, 2013 17:43
mpip.allreduce
@ mpiP
@ Command : /home/snoweye/work-my/local/R-devel/lib/R/bin/exec/R --slave --no-restore --file=allreduce.r --args
@ Version : 3.3.0
@ MPIP Build date : Jul 18 2013, 16:36:20
@ Start time : 2013 07 18 16:50:32
@ Stop time : 2013 07 18 16:50:32
@ Timer Used : PMPI_Wtime
@ MPIP env var : [null]
@ Collector Rank : 0
@ Collector PID : 24033
@igauravsehrawat
igauravsehrawat / gist:6149534
Created August 4, 2013 07:15
codechef:: splitting candies
import java.util.Scanner;
public class Main {
public static void main(String args[]){
//upper limit for n and k are 2^33 -1
@igauravsehrawat
igauravsehrawat / gist:6161274
Created August 6, 2013 01:36
getting error at line 46 error:Exception in thread "main" java.lang.NullPointerException at com.company.lelemon.main(lelemon.java:46) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc…
package com.company;
import java.util.Scanner;
/**
* Created with IntelliJ IDEA.
* User: g
* Date: 8/5/13
* Time: 7:18 AM
* To change this template use File | Settings | File Templates.