Skip to content

Commit

Permalink
1) modify Dockerfile to new Makefile 2) add boost_pika tool
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelMaker committed Aug 5, 2017
1 parent d9931b5 commit 6f6264a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 30 deletions.
9 changes: 1 addition & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,15 @@ MAINTAINER left2right <[email protected]>

RUN yum -y update && \
yum -y install snappy-devel && \
yum -y install protobuf-compiler && \
yum -y install protobuf-devel && \
yum -y install bzip2-devel && \
yum -y install zlib-devel && \
yum -y install bzip2 && \
yum -y install gcc-c++ && \
yum -y install make && \
yum -y install git

ENV PIKA /pika
COPY . ${PIKA}
WORKDIR ${PIKA}
RUN git submodule init
RUN git submodule update
RUN make __REL=1
RUN cp -f ${PIKA}/output/lib/libglog.so.0 /usr/lib64/
RUN make RPATH=${PIKA}/third/glog/.libs
ENV PATH ${PIKA}/output/bin:${PATH}

WORKDIR ${PIKA}/output
8 changes: 0 additions & 8 deletions _config.yml

This file was deleted.

14 changes: 0 additions & 14 deletions index.md

This file was deleted.

14 changes: 14 additions & 0 deletions tools/boost_pika/boost_pika.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

threads=`ps -eLf | grep pika | grep -v 'tmux' | grep -v 'grep' | awk '{print $4}'`
processor_nums=$(cat /proc/cpuinfo | grep processor | wc -l)

i=0
j=0

for thread in $threads
do
((j=i%($processor_nums)))
taskset -pc $j $thread
let ++i
done

0 comments on commit 6f6264a

Please sign in to comment.