forked from OpenAtomFoundation/pika
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1) modify Dockerfile to new Makefile 2) add boost_pika tool
- Loading branch information
1 parent
d9931b5
commit 6f6264a
Showing
4 changed files
with
15 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |