From: henken <he...@se...> - 2002-01-08 22:14:04
|
I am playing around with some of the bproc C functions, and I have noticed that most of them do not work on the nodes if the program is started locally on the node instead of through bpsh. here is the sample program: #include <stdio.h> #include <sys/bproc.h> int main() { printf("currnode: %d\n", bproc_currnode()): } when invoked via bpsh: # bpsh <node> test the out put is as expected, that the right node number is printed. However, when I ssh to the node and run it: # ssh node<node> # ./test I always get -1 as the output. Is this the correct behavior? If so, how would I get the information I am looking for with out using bpsh? Nic -- Nicholas Henke Undergraduate - SEAS '02 Liniac Project - University of Pennsylvania http://clubmask.sourceforge.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ There's nothing like good food, good beer, and a bad girl. |