Sponsored Content
Full Discussion: Bsub array problem
Top Forums UNIX for Dummies Questions & Answers Bsub array problem Post 302893717 by ehj on Thursday 20th of March 2014 05:23:05 PM
Old 03-20-2014
Bsub array problem

I'm trying to run some computations on a cluster and have found that a bsub array is what I need.. So I tried running a simple example I found

Code:
bsub -J "myArray[1-10]" echo "Job \$LSB_JOBINDEX"

This should create 10 jobs that output "Job 1" "Job 2" .. etc. But when I run this from afs space I get the message
"LSB_JOBINDEX: Undefined variable."

LSB_JOBINDEX should be the index of the current array job.. Any ideas what's going on?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

array problem

Dear Experts, please help me out once again my array concepts is not very clear i have one text file like. 1|usa|hh 2|usa|ll 3|usa|vg 4|uk|nn 5|uk|bb 6|kuwait|mm 6|kuwait|jkj 7|dubai|hh i want to store the third fied of a text file in he array and after that it should give me some... (6 Replies)
Discussion started by: shary
6 Replies

2. Shell Programming and Scripting

Array problem

I am using /bin/ksh for this problem. I have created some arrays with variable names as the array names: cnt=1 { while read myline; do tempmeas="${meas%%;*}" cto="${meas#*;}" tempstream=$stream # wholemeas holds the name of the array # each array name... (0 Replies)
Discussion started by: ajgwin
0 Replies

3. UNIX for Dummies Questions & Answers

Writing a script to work sequentially with bsub

Hi, I am REALLY a newbie of Unix: hope this question is not too odd. Here is my problem: I have to submit jobs to a remote platform (an IBM BCX/5120). To submit I have tobsub < filename.jcf and the .jcf file has usually the following content: #!/bin/bash #BSUB <commands of the bsub>... (1 Reply)
Discussion started by: silky
1 Replies

4. Programming

Help on some array problem!!

i have no idea how to make a text file abc efg hij klm nop qrs to be a array such as, arr to be "abc efg" arr "hij kml" etc..... in C (2 Replies)
Discussion started by: tyckelvin1
2 Replies

5. Shell Programming and Scripting

Node selection with bsub

Hi! I am currently using the bsub command to submit jobs to a cluster and I need to specify the name of the node to which i want the job sent. What do I add to my .pbs script to specify this? Cheers (0 Replies)
Discussion started by: mancino
0 Replies

6. Shell Programming and Scripting

Passing a variable to #BSUB -n in a LSF file

Hi There! I'm writing this LSF script to make it easier to send jobs to a cluster when varying certain parameters. At one point I'd like to do something like: set NPROC = 10 and later on call BSUB using something like: #BSUB -n $NPROC unfortunately for me, this throws an error: ... (4 Replies)
Discussion started by: lrayo
4 Replies

7. UNIX for Dummies Questions & Answers

qsub equivalent of bsub command

"bsub -o /dev/null -P something -q normal -a optimize -n 1 -R \"rusage\ span\\" -J GUISETUP_${PID} \"dc_shell-t -f .dc_script_$job_index.tcl -output_log_file .dc_shell_$job_index.log \"" Can anybody please tell me the qsub equivalent for this command? ---------- Post updated at 06:48 AM... (0 Replies)
Discussion started by: chaudhary3031
0 Replies

8. UNIX for Dummies Questions & Answers

Bsub command

Hi everyone, I must write a Linux script for a biological analysis. I have an example for that which involves the "bsub" and "bsub-o" command, respectively. I cannot find a description for this command. Can you please help me? (2 Replies)
Discussion started by: Max_W
2 Replies

9. Shell Programming and Scripting

How to create a variable without multiple concats in a perl scripts that makes a bsub?

The red text at the bottom represents the three lines I want to address. I'm dynamically creating a bsub with a perl script and would like to create the fasta_16S variable in a single line....not three. I'm having difficulty in getting the syntax correct. Obviously, there is some confusion... (3 Replies)
Discussion started by: jdilts
3 Replies

10. Shell Programming and Scripting

Bsub job does not execute the script

Hello, When I'm trying to send bsub job using script that executes fine in command line, I get nothing. I do this for testing purposes, and the script scr_test is just one line: pwd > outfile So when I'm executing it in command line: $ ./scr_test it works fine producing the outfile with... (2 Replies)
Discussion started by: Sergey Aliev
2 Replies
SLARRF(l)								 )								 SLARRF(l)

NAME
SLARRF - the initial representation L D L^T and its cluster of close eigenvalues (in a relative measure), W( IFIRST ), W( IFIRST+1 ), .. SYNOPSIS
SUBROUTINE SLARRF( N, D, L, LD, LLD, IFIRST, ILAST, W, DPLUS, LPLUS, WORK, IWORK, INFO ) INTEGER IFIRST, ILAST, INFO, N INTEGER IWORK( * ) REAL D( * ), DPLUS( * ), L( * ), LD( * ), LLD( * ), LPLUS( * ), W( * ), WORK( * ) PURPOSE
Given the initial representation L D L^T and its cluster of close eigenvalues (in a relative measure), W( IFIRST ), W( IFIRST+1 ), ... W( ILAST ), SLARRF finds a new relatively robust representation L D L^T - SIGMA I = L(+) D(+) L(+)^T such that at least one of the eigenvalues of L(+) D(+) L(+)^T is relatively isolated. ARGUMENTS
N (input) INTEGER The order of the matrix. D (input) REAL array, dimension (N) The n diagonal elements of the diagonal matrix D. L (input) REAL array, dimension (N-1) The (n-1) subdiagonal elements of the unit bidiagonal matrix L. LD (input) REAL array, dimension (N-1) The n-1 elements L(i)*D(i). LLD (input) REAL array, dimension (N-1) The n-1 elements L(i)*L(i)*D(i). IFIRST (input) INTEGER The index of the first eigenvalue in the cluster. ILAST (input) INTEGER The index of the last eigenvalue in the cluster. W (input/output) REAL array, dimension (N) On input, the eigenvalues of L D L^T in ascending order. W( IFIRST ) through W( ILAST ) form the cluster of relatively close eige- nalues. On output, W( IFIRST ) thru' W( ILAST ) are estimates of the corresponding eigenvalues of L(+) D(+) L(+)^T. SIGMA (input) REAL The shift used to form L(+) D(+) L(+)^T. DPLUS (output) REAL array, dimension (N) The n diagonal elements of the diagonal matrix D(+). LPLUS (output) REAL array, dimension (N) The first (n-1) elements of LPLUS contain the subdiagonal elements of the unit bidiagonal matrix L(+). LPLUS( N ) is set to SIGMA. WORK (input) REAL array, dimension (???) Workspace. FURTHER DETAILS
Based on contributions by Inderjit Dhillon, IBM Almaden, USA Osni Marques, LBNL/NERSC, USA LAPACK version 3.0 15 June 2000 SLARRF(l)
All times are GMT -4. The time now is 01:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy