cray

How to get rank in aprun

若如初见. 提交于 2020-01-03 15:33:28
问题 I am trying to run a multi-node jobs with aprun. However, I couldn't figure out how to get the rank (or whatever that serves as the ID of each job) in bash environment. Like this simple job: aprun -n 8 -N 2 ./examplebashscript.sh How can I get the rank in each spawned jobs? Without something like a rank or any unique job ID, this aprun line will only run the exact same program 16 times, which is undesirable. I've been reading on the documentation, surprisingly I couldn't find anything that

libxml2 on Cray not usable

岁酱吖の 提交于 2019-12-13 03:42:04
问题 I need to use libxml2 in a project that I want to compile on a Cray machine. In principle it is installed, there is a xml2-config program that gives me linker flags: $ xml2-config --libs -lxml2 -L/lib64 -lz -llzma -lm -ldl I have a very simple test program: $ cat test.c int main() { return 0; } Though in principle not needed, I can compile this with gcc test.c -lxml2 -L/lib64 -lz -llzma -lm -ldl just fine. However, with the Cray compiler it does not work: $ cc test.c -lxml2 -L/lib64 -lz

Why does Cmake Always Choose GCC?

拥有回忆 提交于 2019-12-11 09:36:44
问题 For reasons that I cannot completely understand, Cmake awlays chooses the GNU compiler toolset when compiling software. My enviroment looks like this: which cc /opt/cray/xt-asyncpe/4.9/bin/cc which CC /opt/cray/xt-asyncpe/4.9/bin/CC echo $CC /opt/cray/xt-asyncpe/4.9/bin/cc echo $CXX /opt/cray/xt-asyncpe/4.9/bin/CC but when I use cmake I get this Using existing /opt/cmake/2.8.4/bin/cmake -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C

Obtaining current host name from Cray Fortran

时光总嘲笑我的痴心妄想 提交于 2019-12-02 05:04:32
问题 Anyone knows how to get the current host name from a Cray Fortran program? I want basically the output of UNIX gethostname() . After scouring Craydocs pages, I see that the PXF* functions do not seem to contain this information. Wirawan 回答1: Cray Fortran is quite ahead in modern Fortran features. You can call the gethostname() using C interoperability features of Fortran 2003. The name would be null terminated. You can also probably use GET_ENVIRONMENT_VARIABLE intrinsic subroutine from

Obtaining current host name from Cray Fortran

风格不统一 提交于 2019-12-02 02:27:34
Anyone knows how to get the current host name from a Cray Fortran program? I want basically the output of UNIX gethostname() . After scouring Craydocs pages, I see that the PXF* functions do not seem to contain this information. Wirawan Cray Fortran is quite ahead in modern Fortran features. You can call the gethostname() using C interoperability features of Fortran 2003. The name would be null terminated. You can also probably use GET_ENVIRONMENT_VARIABLE intrinsic subroutine from Fortran 2003. Try using PXFGETENV to get the value of the HOSTNAME environment variable. Since all Cray machines

How to get 100% CPU usage from a C program

孤人 提交于 2019-11-26 21:24:09
This is quite an interesting question so let me set the scene. I work at The National Museum of Computing, and we have just managed to get a Cray Y-MP EL super computer from 1992 running, and we really want to see how fast it can go! We decided the best way to do this was to write a simple C program that would calculate prime numbers and show how long it took to do so, then run the program on a fast modern desktop PC and compare the results. We quickly came up with this code to count prime numbers: #include <stdio.h> #include <time.h> void main() { clock_t start, end; double runTime; start =

How to get 100% CPU usage from a C program

跟風遠走 提交于 2019-11-26 07:55:33
问题 This is quite an interesting question so let me set the scene. I work at The National Museum of Computing, and we have just managed to get a Cray Y-MP EL super computer from 1992 running, and we really want to see how fast it can go! We decided the best way to do this was to write a simple C program that would calculate prime numbers and show how long it took to do so, then run the program on a fast modern desktop PC and compare the results. We quickly came up with this code to count prime