Skip to content

Commit

Permalink
Add Gnuplot/
Browse files Browse the repository at this point in the history
  • Loading branch information
mnakao committed Jan 20, 2024
1 parent 9d3070e commit 764444f
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Gnuplot/form.js

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions Gnuplot/form.yml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<%-
require '/var/www/ood/apps/sys/ondemand_fugaku/misc/utils.rb'
-%>
---
title: Gnuplot
form:
<%= form_cluster("prepost") %>
<%= form_queue("prepost") %>
<%= form_hours("prepost1") %>
<%= form_hours("prepost2") %>
<%= form_hours("reserved") %>
<%= form_cores("gpu1") %>
<%= form_cores("gpu2") %>
<%= form_cores("mem1") %>
<%= form_cores("mem2") %>
<%= form_cores("reserved") %>
<%= form_memory("gpu1") %>
<%= form_memory("gpu2") %>
<%= form_memory("mem1") %>
<%= form_memory("mem2") %>
<%= form_memory("reserved") %>
<%= form_gpus_per_node(true) %>
<%= form_input_file(true) %>
<%= form_email() %>
<%= form_desktop() %>
attributes:
<%= form_attr() %>
Binary file added Gnuplot/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions Gnuplot/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Gnuplot
category: Interactive Apps
subcategory: Viewer
role: batch_connect
description: |
[Gnuplot](http://www.gnuplot.info) is a portable command-line driven graphing utility.
tile:
sub_caption: |
14 changes: 14 additions & 0 deletions Gnuplot/submit.yml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<%-
require '/var/www/ood/apps/sys/ondemand_fugaku/misc/utils.rb'
-%>
---
script:
job_name: ood_visit
queue_name: <%= queue %>
<%= submit_email(email) %>
<%= submit_gpus_per_node(queue, gpus_per_node) %>
<%= submit_native_prepost(queue, prepost1_hours, gpu1_cores, gpu1_memory, prepost2_hours,
gpu2_cores, gpu2_memory, mem1_cores, mem1_memory, mem2_cores,
mem2_memory, reserved_hours, reserved_cores, reserved_memory) %>
batch_connect:
<%= submit_vnc(staged_root) %>
8 changes: 8 additions & 0 deletions Gnuplot/template/before.sh.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
######################
# When /home directory is nfs-mounted with lookupcache=none option,
# the error "/usr/bin/env: bad interpreter: Text file busy" occurs.
# This is because that the script.sh is not finished being copied in a compute node.
# To prevent that, change to a file with a different name in the compute node.
######################
cp script.sh tmp.sh
mv tmp.sh script.sh
9 changes: 9 additions & 0 deletions Gnuplot/template/desktops/xfce.sh.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<%-
require '/var/www/ood/apps/sys/ondemand_fugaku/misc/utils.rb'
-%>

<%= output_xfce(context.gpus_per_node) %>

${_VIRTUALGL} gnuplot "<%= context.input_file %>" -p &
${_VIRTUALGL} xfce4-session
fg
9 changes: 9 additions & 0 deletions Gnuplot/template/script.sh.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

cd ${HOME}

# Ensure that the user's configured login shell is used
export SHELL="$(getent passwd $USER | cut -d: -f7)"

# Start up desktop
source "<%= session.staged_root.join("desktops", "#{context.desktop}.sh") %>"

0 comments on commit 764444f

Please sign in to comment.