Skip to content

Commit a755fe2

Browse files
committed
update check version and Dockerfile
1 parent fd46ba3 commit a755fe2

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

Dockerfile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,28 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
1414
automake
1515
RUN rm -rf /var/lib/apt/lists/*
1616

17-
RUN wget ftp://ftp.mcs.anl.gov/pub/darshan/releases/darshan-3.4.0.tar.gz
18-
RUN tar zxvf darshan-3.4.0.tar.gz
17+
RUN wget https://ftp.mcs.anl.gov/pub/darshan/releases/darshan-3.4.4.tar.gz
18+
RUN tar zxvf darshan-3.4.4.tar.gz
1919

20-
WORKDIR /darshan-3.4.0/
20+
WORKDIR /darshan-3.4.4/
2121

2222
RUN bash prepare.sh
2323

24-
WORKDIR /darshan-3.4.0/darshan-util/
24+
WORKDIR /darshan-3.4.4/darshan-util/
2525

26-
RUN ./configure && make && make install
26+
RUN ./configure --prefix=/opt/darshan && make && make install
27+
28+
ENV PATH=/opt/darshan/bin:$PATH
29+
ENV LD_LIBRARY_PATH=/opt/darshan/lib:$LD_LIBRARY_PATH
2730

2831
WORKDIR /
2932

30-
RUN git clone https://github.com/hpc-io/drishti
33+
RUN git clone https://github.com/hpc-io/drishti-io
3134

32-
WORKDIR /drishti
35+
WORKDIR /drishti-io
3336

3437
RUN pip install --upgrade pip
3538
RUN pip install -r requirements.txt
3639
RUN pip install .
3740

38-
ENTRYPOINT ["drishti"]
41+
ENTRYPOINT ["drishti"]

drishti/handlers/handle_darshan.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ def check_log_version(console, file, log_version, library_version):
4040

4141
sys.exit(os.EX_DATAERR)
4242

43-
use_file = os.path.abspath(file.replace('.darshan', '.converted.darshan'))
43+
use_file = os.path.basename(file.replace('.darshan', '.converted.darshan'))
4444

4545
console.print(
4646
Panel(
4747
Padding(
48-
'Converting .darshan log from {}: saving output file "{}" in the current working directory.'.format(
48+
'Converting .darshan log from {}: format: saving output file "{}" in the current working directory.'.format(
4949
log_version,
5050
use_file
5151
),
@@ -85,7 +85,8 @@ def handler():
8585
library_version = darshanll.get_lib_version()
8686

8787
# Make sure log format is of the same version
88-
filename = check_log_version(console, args.log_path, log_version, library_version)
88+
filename = args.log_path
89+
# check_log_version(console, args.log_path, log_version, library_version)
8990

9091
darshanll.log_close(log)
9192

0 commit comments

Comments
 (0)