Sun Performance Library and OpenMP applications

Hi list,
I have a code that uses BLAS/Lapack libraries. This code requires the BLAS/Lapack to run in serial mode. If and when it runs in parallel this is a disaster. The code runs in parallel with OpenMP directives in SMP systems. I specify the number of threads by setting
OMP_NUM_THREADS
to the number of threads desired. Unfortunately if OMP_NUM_THREADS > 1 then sunperf runs in parallel as well. Is there anyway to tell to the sunperf library to run in serial mode no matter what the value of OMP_NUM_THREADS is?
For example GOTO BLAS library provides the environmental variable GOTO_NUM_THREADS which is dedicated to the threads of the GOTO library. So by setting GOTO_NUM_THREADS = 1, the library always runs in serial mode no matter what the value of OMP_NUM_THREADS is.
How could I achieve the same effect with Sun Performance Library?

Take a look at Perflib's USE_THREADS routine :
man -s 3p use_threads
Doing a call to USE_THREADS with the value of "1", before calling Perflib routines may work for you.
Also, I've noticed applications that have lots of small chunks of parallel work, need the threads to be very responsive. (And not sleep in between work chunks)
A way to make the threads not sleep is with the ${SUNW_MP_THR_IDLE} environment variable. I always set the value to "SPIN" :
% setenv SUNW_MP_THR_IDLE SPIN
You can see other settings for this in the OpenMP User's Guide, page 18 :
http://docs.sun.com/app/docs/doc/819-5270
Hope this helps.

Similar Messages

  • CBLAS in sun performance library coming with solaris studio 12.2

    Hello,
    In sunperf library coming with sun studio 12u1 (linux x86) I can use cblas callings using the standard names cblas_xxxx. This interface do not appears in sunperf.h (you can use standard cblas.h) but the objects are in libsunperf.(a|so).
    But in solaris studio 12.2 libsunperf cblas_xxxx objects do not exists. Is this normal? Contains libsunperf a standard c blas interface?
    Thanks

    Hello again,
    In this blog post
    http://www.mlds-networks.com/index.php/component/option,com_mojo/Itemid,29/p,35/
    is explained how to link the ACML (AMD core math library) in order to use the standard CBLAS interface (ACML do not provides a standard CBLAS). I tried it and all runs OK. I did the same for the sun performance library in solstudio 12.2 and the compilation proccess runs ok, but in the testing step all functions fails becaude an incorrect argument in each function.
    Exists any way for use the standard CBLAS interface with sun performance library? As I noted in my previous post, version 12.1 of sunstudio libsunperf contains the standard CBLAS interface, but I would like to use version 12.2
    Thanks

  • Unable to link to sun performance library

    I am using SS12 with nevada build 70. When trying to link to sun performance library routine from F90 code, I am getting errors. See the code and output below,
    PROGRAM DeepWell
         USE SUNPERF
         IMPLICIT NONE
         INTEGER, PARAMETER :: N=5          ! No. of nucleons in consideration
         INTEGER :: i,j,k,ios
         DOUBLE PRECISION,DIMENSION(N,N) :: S,H
         DOUBLE PRECISION,DIMENSION(N) :: eig
         DOUBLE PRECISION :: tmp
         DO i=1,N
              DO j=i,N
                   k = i+j
                   IF (MOD(k,2) == 0) THEN
                        S(i,j) = 2.0/(k+5.0) - 4.0/(k+3.0) + 2.0/(k+1.0)
                        H(i,j) = 8*(k+2.0*i*j-1)/(k+3.0)/(k+1.0)/(k-1.0)
                   ELSE
                        S(i,j) = 0.0
                        H(i,j) = 0.0
                   ENDIF
    ENDDO
         ENDDO
         call sygy(1,'V','U','N',H,B=S,W=eig)
    END PROGRAM DeepWell
    Output:
    Running "/usr/bin/dmake -f Makefile CONF=Release" in /export/home/mbkumar/Thissjen/C3/This_C3_P1_VC
    dmake: defaulting to parallel mode.
    See the man page dmake(1) for more information on setting up the .dmakerc file.
    bharat1 --> 1 job
    /usr/bin/dmake -f nbproject/Makefile-Release.mk SUBPROJECTS= .build-conf
    bharat1 --> 1 job
    mkdir -p build/Release/Sun12-Solaris-x86
    f90 -xtarget=opteron -m64 -dalign -xlic_lib=sunperf -c -O3 -w1 -o build/Release/Sun12-Solaris-x86/VC.o VC.f90
    bharat1 --> Job output
    mkdir -p build/Release/Sun12-Solaris-x86
    f90 -xtarget=opteron -m64 -dalign -xlic_lib=sunperf -c -O3 -w1 -o build/Release/Sun12-Solaris-x86/VC.o VC.f90
    (/export/home/mbkumar/Thissjen/C3/This_C3_P1_VC)VC.f90:
    call ssygy(1,'V','U','N',H,B=S,W=eig)
    ^
    "VC.f90", Line = 41, Column = 30: ERROR: An actual argument keyword is being used when an explicit interface is not known.
    ^
    "VC.f90", Line = 41, Column = 34: ERROR: An actual argument keyword is being used when an explicit interface is not known.
    f90comp: 44 SOURCE LINES
    f90comp: 2 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
    :(/export/home/mbkumar/Thissjen/C3/This_C3_P1_VC)VC.f90
    *** Error code 1
    dmake: Fatal error: Command failed for target `build/Release/Sun12-Solaris-x86/VC.o'
    Current working directory /export/home/mbkumar/Thissjen/C3/This_C3_P1_VC
    *** Error code 1
    dmake: Fatal error: Command failed for target `.build-impl'
    Build failed. Exit value 1.

    please ignore the above question. I called non-existing routine.

  • Sun Performance library or just a tuned BLAS for Solaris x86?

    Hi,
    I know the sun performance library is not available on Solaris x86, but is
    there at least a tuned blas library available?
    thanks,
    tim

    The compilation line you list is correct. One way to see if there are outstanding unsatisfied references is to use the ldd command on the shared library that you created:
    % CC -dalign -xarch=v9a -G -o LA.so $(OBJECTS) -library=sunperf -staticlib=sunperf
    % ldd LA.so
    I assume that one or more of the .o files in the $(OBJECTS) list makes calls to Perflib routines. Does your application (the code that is linking to the LA.so shared library) also make calls to Perflib routines? If so, these will not have been satisfied in the previous creation of the LA.so shared library.

  • FLTBOUNDS coredump, relative to sun performance library

    Hi,
    I got an core dump, the "truss" log is:
    27346: lwp_kill(1209, SIG#0) Err#3 ESRCH
    27346: lwp_create(0xFFBEF088, LWP_SUSPENDED, 0xFFBEF084) = 1210
    27346: lwp_create() (returning as new lwp ...) = 0
    27346: lwp_continue(1210) = 0
    27346: lwp_schedctl(SC_STATE|SC_PREEMPT, 0, 0xFDEFBDA4) = 0
    27346: sigprocmask(SIG_SETMASK, 0xFF35819C, 0x00000000) = 0
    27346: lwp_exit()
    27346: lwp_wait(1210, 0xFFBEF24C) = 0
    27346: lwp_wait(1210, 0xFFBEF24C) Err#3 ESRCH
    27346: lwp_kill(1210, SIG#0) Err#3 ESRCH
    27346: lwp_create(0xFFBEF088, LWP_SUSPENDED, 0xFFBEF084) = 1211
    27346: lwp_create() (returning as new lwp ...) = 0
    27346: lwp_continue(1211) = 0
    27346: lwp_schedctl(SC_STATE|SC_PREEMPT, 0, 0xFDEFBDA4) = 0
    27346: Incurred fault #6, FLTBOUNDS %pc = 0xFEF7756C
    27346: siginfo: SIGSEGV SEGV_MAPERR addr=0xFF194000
    27346: Received signal #11, SIGSEGV [default]
    27346: siginfo: SIGSEGV SEGV_MAPERR addr=0xFF194000
    27346: *** process killed ***
    I used "/mnts/cdstools/SunCC-7.0.5/solaris-sparc-2.8/bin/CC test.C -xlic_l=sunperf -g -mt -lthread -R/usr/lib/lwp/" to compile.
    I suspect there is a bug in dgemm(one function from Sun Performance Library), since if I comment it out, anything become ok.
    Any one have similar problem?
    Thanks.
    ljg

    Can you post a testcase of your code so I can try to replicate the problem?
    Also, what is is your per-thread stack size set to? A large (4MB) stacksize is required if libsunperf is called from a user created thread.
    See the following for more info if it is indeed a stacksize issue..
    http://docs.sun.com/source/816-2463/plug_optimizing.html#pgfId-19550
    -Moazam

  • ITunes 8 lost library and all applications for the iPhone 3g

    I am on WinXP Prof, using iTunes v8. This is second time I lost my entire library with ratings, applications, etc. for my iPhone 3g. The first tie it happened to iTunes v7, now with v8.
    Music folder (it is on another HDD) is still there, but iTunes shows no playlists, no files. I looked at other posts on how to rebuild the library, but could not restore song ratings. I did not have a backup of the library files (only music mp3s).
    Now I re-created the library from scratch (glad iTunes writes song data into mp3 and not into its library file.)
    QUESTION: How do I restore all of my applications that I bought and free ones from the App Store for iPhone? I see that the "Mobile Applications" folder is there with all of the *.ipa files, but iTunes does not show those apps. How do I make iTunes pick it up?
    PS. It is really amazing to me that iTunes would behave like this in v8. Apple, WOW... Up until I bought iPhone 3G in August 2008 I was using different versions of WinAmp for ~6 years and not once did I lose my library of songs...

    Hi, I and most polish users have the same problem. There are plenty of apps I would buy if I could but I need to have that **** credit card. Apple could at least enable paypal payments for foreing users but it looks they don't mind losing money they could get (America is not the only country wehere people have iPhones).
    So I guess most iPhone users will continue to hack their phones to be able to install greatly affordable commercial applications instead of buying it. I gess I don't understand Apple anymore.

  • How to check the usage of ram and cpu Performance for the particular application like sqlserver ,ms word

    how to check the usage of ram and cpu  Performance for the particular application like sqlserver ,ms word
    ranki

    Hi,
    You can use Performance Monitor and add the required counters.
    Check the below Technet article on Performance Monitor.
    http://technet.microsoft.com/en-us/library/cc749249.aspx
    Below are the steps to monitor the process in Performance Monitor.
    - Go to the Performance Monitor. 
    - Right-click on the graph and select "Add Counters".
    - In the "Available counters" list, open the "Process" section by clicking on the down arrow next to it. Select "% Processor Time" (and any other counter you want).
    - In the "Instances of selected object" list, select the process you want to track. Then click on "Add >>" button. Click on OK.
    Regards,
    Jack
    www.jijitechnologies.com

  • Sun Studio 12 Update1 and OpenMP

    Hi guys,
    I was using the Sun Studio 12 with OpenMP and everything was OK. So I decide to download the update 1 (which is OpenMP 3.0 full compliance), however I am getting linking error.
    Below is the message:
    Undefined first referenced
    symbol in file
    __mt_MasterFunction_cxt_ build/Debug/SunStudio_12.1-Solaris-x86/a1.o
    I look into my libmtsk.so libraries and I could see that __mt_MasterFunction_cxt_ really does not exist.
    So I believe this is a bug on Sun Studio 12 Update 1 that didn't install the last library. Anyway, I am try to find out where to get this library or any patch to it. I did try to get the patch 120754. However the site is pointing that I has no support contract. What is true just because I am a student, and I am just learning things for now...:-)
    Hope someone can help me with that..
    Thanks and Regards

    I cannot download any patch because I do not have any support contract.Last time I tried, Solaris patches were free, at least those related to compiler components.
    Byt the way, I rarely install the product myself, but I had an impression that Solaris version comes together
    with patches, which are intended to be installed right upon the installation.
    I'm sorry for the lost hours of precious time, but that seems to be more like your navigational error,
    rather than the intentional attempt from Sun to decieve you.
    Believe me or not, we made Sun Studio free because we want developers to use it, not because
    we hope to catch you offguard and cut some money.
    I should get opensolaris if I want a "linux like license and support"And that is true.
    If you do not like the way Solaris patches are managed (and, many think that it is a mess) you might better like Opensolaris.
    You also might want to try Linux version, it is as close to Solaris version functionality-wise as possible.
    I will just uninstall my sun studio 12 update 1 and go back to the sun studio 12 (where no patches are needed to run the openmp 2.5).Sun Studio 12 got no interface change thus no patches were needed to run OpenMP 2.5 as soon as you have libmtsk.so installed.
    Quite contrary, SS12u1 got OpenMP 3.0, which is substantially different to OpenMP 2.5 and that warranted interface change in runtime support
    (libmtsk.so).
    Trying to create "partial open source" things is not that good. First, it is not open source yet :-), it is just free.
    Then, if we would do partial thing (which is not that bad per se, surely depending on how you do it), that would definitely be written in caps all around.
    And broken functionality is definitely not the way Sun does its business.
    regards,
    __Fedor.

  • When I start my iPhoto it says: "Your photo library is either in use by another application or has become unreadable". I don't have a back-up of my library and I don't know what to do! Thanks

    When I start my iPhoto it says: "Your photo library is either in use by another application or has become unreadable". I don't have a back-up of my library and I don't know what to do! Thanks

    Try to restart your Mac. If the library is really in use by another application, that can clear it.
    Tell us more about your system. Which version of iPhoto are you using? Which version of MacOS X?
    Where are you storing your iPhoto Library?
    What happened before this problem first started? Did iPhoto crash? Did you move the iPhoto Library somewhere else?
    Try Terence Devlin's fix here:   Re: IPHOTO LOCKED
    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look there for a file called ‘iPhoto’Lock.data or similar. Drag it to the Desktop. Make no other changes. Start iPhoto. Does that help?

  • Creating a class library in VS2013 that can be referenced by a VB6 application and newer applications

    I need to create a class library in VS2013 that can be referenced by a VB6 application and newer applications. I heard something about
    COM Interop but have no idea where to start. I am assuming I would develop a class library in VS2013 and then package the assembly for COM. Any good sample projects on this out there?

    Hello,
    >> Any good sample projects on this out there?
    Not suer if you are using C# as the develop language, if it is, i think you would find a lot of articles about this topic with your favorite search engine, here are some related links:
    COM Interop Part 1: C# Client Tutorial
    COM Interop Part 2: C# Server Tutorial
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Real Application Cluster on Sun Solaris 8 and Sun Cluster 3

    Hello,
    we want to install Oracle 9i Enterprise Edition in combination with Oracle Real Application Cluster-Option on 2 Nodes. Every node (12-CPU-SMP-Machine) should running Sun Solaris 8 and Sun Cluster 3 Service.
    Does this configuration work with ORAC? I found nowhere informations about. Is there anything I have to pay special attention for during installation?
    Thank you for helping and best regards from Berlin/Germany
    Michael Wuttke

    Forms and report services work fine on solaris 8.
    My problem is on the client side.
    I have to use solaris 8 with netscape like forms clients
    and I wasn't able to make it work with java plugins.
    Any solution?
    Mauro

  • Time machine only copies User Info and Users (Applications, Library, and System are missing) from my quad core Mac Pro.  45 Gb of 162 Gb are missing.  Any one having success with time machine copying all folders using Mavericks?   What do I need to do dif

    Time machine only copies User Info and Users (Applications, Library, and System are missing) from my quad core Mac Pro.  45 Gb of 162 Gb are missing.  Any one having success with time machine copying all folders using Mavericks?
    What do I need to do differently?

    The late, great Pondini was investigating that issue before he passed away.
    See here: https://discussions.apple.com/thread/5125969
    I think there might be information there on how to reset Time Machine to do a full backup. I think you basically have to reset it and start over.

  • Sluggish performance (and Adobe applications slow)

    Not sure what the problem is here, well, outside of my Mac running rather sluggishly lately. Even Adobe applications take AT LEAST a minute or more to open up. I seem to be getting the spinning beach ball more often than not jumping between applications at times as well. And watch out if I leave the computer on 7 or more days straight... ouch, the performance drags.
    I've zapped the PRAM, repaired and verified permissions and the drive, my hard drive is only at 30% capacity, so I'm a little stumped about the performance issue.

    How many applications are you running at the same time? Perhaps you need more RAM.

  • "An error has been detected with a required application library and the product cannot continue. Please reinstall the application.

    I have received the following error message from my Adobe Acrobat Pro X1 after installing the CS6 package :, "An error has been detected with a required application library and the product cannot continue. Please reinstall the application.
    I am now unable to open any pdf?
    Any words of advise here how to fix this problem?
    Thanks!

    ** Moved to Acrobat Forums for quicker and accurate resolution steps ***

  • An error has been detected with a required application library and the product cannot continue. Plea

    I am getting the following error each time I open Adobe Acrobat 7.0 Professional...
    "An error has been detected with a required application library and the product cannot continue. Please reinstall the application."
    I have tried uninstalling and then reinstalling the program. It didn't help, got the same error shortly after opening the program.
    What is strange is that the problem just suddenly appeared therefore, I believe that it may have been malware related causing this problem. And I have had this program and have been using it without any problems now for over 3 years.
    It appears that a vital part of the program is being blocked.
    Can anyone please help and offer a detailed solution to this problem? Maybe someone has already encountered it.
    Thank you!
    -Dan Sacapano

    Anoop,
    Upon re-reading that information, I am curious as to why your believe that this will solve my issue. That is not related to my error message: "An error has been detected with a required application library and the product cannot continue. Please reinstall the application."
    I have not received any such message as the one seen on that page.
    Please explain why I wouldn't have gotten that partcular message and instead got the one I quoted above?
    Thank you,
    -Dan

Maybe you are looking for

  • Acrobat 11.0.6.70 APPCRASH on Go to Bookmark with PDX

    I have a PDF that is "associated with" a PDX (Adobe Acrobat Catalog Index). When I select "Go to Bookmark", (ie, with the Bookmarks window open on the left hand side, I select the "Options" dropdown list and then select "Go to Bookmark") it always cr

  • Indesign CS5 - png images blur in interactive PDF

    I use CS5 to create client documents and beginning to learn how to make PDF documents interactive.  We use .png files which export to PDF (print) with no problem either on screen or when printed, but when the same file is exported to PDF (interactive

  • Problem with small text in iview header

    hi, i got a little problem with iView header. I've set 2 pages containing the same iViews. The 2 pages have layout (1 column full width -- standard) and the 2 pages have the same properties, themes. The problem is that in the first page the header te

  • Stuck trackpad button on Macbook Pro late 2011?

    Hi everyone, I have been experience some problemas lately with My Macbook Pro late 2011, which I bough in december 2011. The problem now is that the trackpad button seems to be like stuck, when you try touse the click not just the tap, the button see

  • Can I use compact flash to transport SD video?

    Hello There, I need to transport about 10-15 minutes of SD video to another computer. Can I use this device:http://www.kingston.com/flash/datatraveler.asp?id=2 Can you download SD video with a USB? Is it just a matter of speed between USB and Firewir