OpenCL How to use both GPUs in battery saving mode

Hello everyone,
Currently I'm developing a software using OpenCL under OS X 10.6.4.
The galaxies (n-body) application provided by Apple is able to query and use both the 9400M and 9600M GT of my Macbook Pro. The interesting thing is, it can even do so in battery saving mode i.e. when the 9400M is the display device and the 9600 should be turned off. Looking at the XCode project and source code it just does:
return_value = clGetDeviceIDs(NULL, CLDEVICE_TYPEGPU, 4, mdeviceid, &count);
To get a device count of 2.
My Makefile based project also links with -framework OpenCL. Executing the same line of code yields just the 9400M though.
Since the NVidia samples show the same behaviour I guess there is a difference in the way the XCode project is set up.
Thanks in advance for any hints!
Kai

Just found out the following:
It is possible to utilise the 9600 in battery saving mode for calculation purposes.
All you need to do is to create an OpenGL context and iterate over the virtual screens like so:
GLint i = 0;
CGLContextObj ctx = CGLGetCurrentContext();
while(CGLSetVirtualScreen(ctx, i) == kCGLNoError) {
i++;
After doing that, a call to clGetDeviceIDs yields two gpu devices:
unsigned int count = 0;
cldeviceid mdeviceid[32];
clGetDeviceIDs(NULL, CLDEVICE_TYPEGPU, 32, mdeviceid, &count);
printf("Found %d GPU devices...\n", count);
Test environment:
Macbook Pro (first unibody, w. 9400M + 9600M GT).
OS X 10.6.4
Explicitly settings the pixel format attribute to allow for offline renderers wasn't necessary in my case.
Unfortunately this solution sounds rather like a bug than feature, so Apple might 'fix' it in the future.
What is more, being required to carry around an OpenGL context might is not possible in every case.
Would be nice if we could just decide which card is used for display purposes in high performance mode, then there would be no reason to fallback to these kind of workarounds...
Kai

Similar Messages

  • How to use session variable in JSP function  & How to use both JSP  Servlet

    Hi,
    I am new to JSP and servlets
    Still I am devloping a website in JSP. I am not mixing JSP with servlets, but I do create Java files for bean, logic and database works.
    I try to keep the hard coding part out of JSP.
    I dont how to use both JSP and Servlets in combination.
    Hence If needed I write some functions in JSP.
    but it gives me error
    +<%! public void abc()+
    +{+
    int intUserId = Integer.valueOf((Integer) session.getAttribute("MySession_UserID"));
    +}+
    +%>+
    Saying cannot find symbol session
    1) So can u please tell how can I access session variables within JSP function
    2) And also give me some links/tutorials about useing both JSP and Servlets in combination.
    Thanks
    Venkat

    The application architecture when you use Servlets and JSP in a standard MVC pattern is explained here (under the heading "Integrating Servlets and JSP Pages") and here ...

  • How to use both functions

    hi all i want display starting letter pf each word in capital .
    for this am using <?xdoxslt:init_cap(field name')?>
    but it is converting only when complete field  is in  lower case if not it is displaying the field with out any conversion.
    So i want convert the lower function on the field but how to use both lower and initcap functions at a time in xml word (for rtf)Kindly help me ion this
    thanks for all in advance.
    Edited by: maddy on 20 Apr, 2012 3:47 AM

    I tested the init_cap function and it converts data correctly even if the text was all uppercase or lower case.
    Can you provide a data sample where this function didn't work for you?
    Use this to combine the functions: <?xdoxslt:init_cap((xdoxslt:convert_case(Description,'lower')))?>
    Thanks,
    Bipuser

  • Tektronix AFG 3022: How to use both channel with VISA

    Hi all!
    I am trying to control the AFG with LabView using the NI VISA driver. There are several given VIs I can use, but I don´t know how to use both channels at the same time correctly. I attached a VI I made.
    Problems are:
    -Sometimes it works, sometimes random errors occur.
    -The waveform generation doesn´t start at the same time.
    -To stop the waveform generation I used the "initialize VI" because I found no better one. Else the generation goes on and on, even though the task was terminated in LabView.
    -How can I trigger the AFG with my NI 6259 in LabView?
    I hope someone has some good ideas helping me out...
    Best regards
    Yopp
    Attachments:
    AWG_out_pulse_2ch.vi ‏36 KB

    Hi Benjamin,
    thanks for the replay. You helped me out very good! I had the Visa driver. I downloaded the driver in your link and it´s way better (more functionality) than the one I used. I now have a configuration, which is working. But there are two things I still doen´t know:
    - How can I put out a trigger signal on the NI 6259. Am I doing this over the normal daqmx VIs? (I, by now, didn´t have the time to try it myself, maybe someone can give me a hint. Saves time...)
    - I want to create two signals on the AFG that are the same, but one is inverted. At the AFG it is no problem (output menu-> invert on/off). This function doesn´t seem to be available in the driver. Is there a possibilty to modify the driver and create a VI with that functionality? Can anyone do this for me or explain to me what I need to do it myself and how to do it?
    Best regards
    Yopp

  • How to use a secondary monitor in Portrait mode

    Finally discovered how to do this.  Here is how to use a second monitor in portrait mode:
    Open System Preferences from your iMac dock.
    Click Displays - Click Arrangement - Click Gather Windows - the secondary monitor dialog box opens.
    Click Rotation - Click 90 degrees rotation for PORTRAIT MODE.
    Click CONFIRM on the secondary monitor to keep Portrait mode.
    Select the desired resolution. I chose 1200 x 1920.
    You'll see a dialog box that says, "About to change the display mode."
    Click OKAY.
    Click Confirm. (If it appears. For some resolutions, I did not have to click confirm, most likely because the monitor supports those resolutions.) 
    Then resize the windows of the software you're using.
    Done!

    I too got the same. Both monitors went portrait. Then I unchecked the 'Mirror Display' option in the Arrangment tab of iMac display and voila. Got what I wanted.

  • Missing Battery Saving Mode

    Hi, friends!
    I was fiddling around with my 9360 and I realized that I don't have the Battery Saving Mode option. I know that I should since I'm running 7.1.0.336, right? I don't think that I did anything wrong in installing the OS. How do I get that option? Is there something I need to do?

    It is the 7.1.0.342 that has a Battery Saving mode for 9360 and unfortunately, its not available with Globe as our Carrier is "not so" updated with OS.
    Ron
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up Blackberry Battery Saving Tips | Follow me on Twitter

  • How to use both At USER-COMMAND and AT LINE-SELECTION in one abap program

    I am trying out a program where I need to use both line selection and user command events in one program. Suggest me how to do it.

    USE the okcode 'PICK'. (I mean add a 'PICK' in the GUI staus or the menu.) When ever u use both the events u have to use PICK to trigger the at line selection.
    U just need to add the PICK in the GUI status and ofcourse write code in the program.
    AT LINE-SELECTION.
    CASE sy-ucomm.
    WHEN 'PICK'.
    write:/ 'HELLO WORLD'.
    ENDCASE.

  • How to use both ojdbc14.jar and ojdbc6.jar in same weblogic domain(weblogic12C)

    Hi all,
    I 'm having issue of using both ojdbc14.jar and ojdbc6.jar in same weblogic application and same weblogic domain in weblogic 12C environment.
    how can i do that?
    i'm currently having application developed using jdk 1.6 and ojdbc6.jar, application developed using jdk 1.4 and ojdbc14.jar.both are currently installed at same domain.
    i want to use the both ojdbc14.jar and ojdbc6.jar in same domain.
    what i previously did was renaming /usr/weblogic/wls_server10.3.4/lib/ojdbc6.jar to /usr/weblogic/wls_server10.3.4/lib/ojdbc6.jar.bak and put ojdbc14.jar in the same path when i wanna use ojdbc14.jar.
    i haven't use both in same environment before, but to go live i wanna match about requirement.pls help.
    i know the way use this by having two domains, but in the same domain i could not find a solution yet.
    Please help

    Hey
    I have the similar requirement.. Did you managed to get an option of doing it? If yes, please provide some insights
    Thanks in Advance

  • Will we ever be able to use both GPUs?

    I'm slightly disappointed in the MBPs performance, and I'm curious about GeForce Boost mode (Boot Camp), and OpenCL (Snow Leopard)
    GeForce Boost already works on several other laptops with Nvidia cards. However, there have been complaints about the MBP already running too hot in Windows. Would activating both GPUs overheat the poor thing? Or could it be solved by forcibly maxing out the fans?
    Will OpenCL in Snow Leopard be able to take advantage of both GPUs, or is that also going to be a cooling issue?

    Keep in mind that graphics rendering on UNIX/Linux systems is significantly different from that of Windows. I'm not sure what Geforce Boost is actually doing on Windows systems, but I think it would be difficult for two different GPUs to be in control of the same display at the same time on any system.

  • How to use both wired and wireless connection with static addresses

    Now that I have setup my home network with static addresses (router, mini1, mini2 and PC) in the way I want, (big thanks to BDAqua http://discussions.apple.com/thread.jspa?threadID=1271635&tstart=0) I would like to understand some more advanced network concepts.
    I would like to change the network so that I use both the wireless connection and the built-in ethernet connection at the same time in my Mac mini1. I would like to connect my PC to my Mac mini by using the wired ethernet connection so that I reach the Internet from my PC as well. I would also like to be in control of all the addresses therefore I want to assign the addresses manually.
    The question: What addresses should I use between mini1 and PC? Should I use the same wireless address space as I already use between the wireless router and the other computers (router: 192.168.1.1, mini1: 192.168.1.101, mini2: 192.168.1.103) or should I use something totally different like 10.X.X.X? What should I put in ethernet connection "Router"-field, the same as in Airport (192.168.1.1)? What about DNS, same as in Airport?

    If I understand this correctly, you wish your Mini to perform Internet Sharing for your PC, correct!?
    If so you'll pretty much have to let the Mini handle DHCP & NAT on the Ethernet port. You also want to be sure Airport is dragged to the top of Network>Show:>Network Port Configurations, that's what position the Mini will use 1st for Internet itself.
    On the Mini turn on both Web Sharing & Internet Sharing. The PC once connected will have the Mini's Ethernet IP as it's Gateway addy.

  • How to use Reader in non-interactive persistent mode to convert PDFs?

    How to use Adobe Acrobat Reader in non-interactive and persistent mode to convert PDFs to PostScript (or even better, bitmapped image files) ?
    At present, I'm using
        acroread -toPostScript  indir/*pdf outdir/
    to convert a set of PDFs to PostScript (the platform is Solaris on Sparc).
    These PDFs arrive at varying rates at arbitrary intervals and I'd like to avoid the overhead of startup of the acroread process and loading of the fonts etc. I would like the acroread process to become persistent and that it should convert the PDFs either as and when they become available or on demand (ie upon receipt of some signal or message).
    In the words, the usage is similar to that used by web browsers, which is effectively a client of the rendering service provided by the Adobe Acrobat Reader running in the background.
    The only difference is that I need the output in a file (or set of files), either bitmap or PostScript.
    Any help / pointers on how to do this would be greatly appreciated.
    Thanks and best regards.

    Hello,
    As I understand, you would like to setup a watch folder which will be getting pdf files in arbitrary intervals. You then want each pdf to be converted to ps in a separate folder.
    You could achieve this with the help of a script by polling for pdf files present in the watch folder. When you find pdf files, convert them to ps, save the ps file in another folder and then move the pdf to another folder.
    In any case, once the process of conversion of pdf to ps is over, acroread will quit.
    There is no way to keep the acroread process running in background and convert pdfs as and when they are available.
    Please let me know if this answers your query.
    Regards,
    Rishi

  • Hi i am using  personal hot spot before updating 6.1.3.now iam using ios 6.1.3 version the personal hot spot is not working..can you please help me on this?how to use that,its in a default mode?

    Hi previously i use personal hotspot,after updating my 6.1.3 ios in india iam not able to use that.It is in a default mode.
    Can you please help me how to use personal hotspot.
    Thanks,
    Goutham.

    Im really good at programming but really suck at algorithms
    >If your are 'really good' at programming, you will be able to solve this problem. Because, it has nothing to do with algorithm.
    >>can someone please please write in a algorithm form for me , i need it by friday i would greatly be thankful for u
    >Wrong person, in the wrong place.

  • No hiberation mode or battery saving mode in HP Steam 7 tablet

    Hi,
    There's a problem with my HP Steam 7 tablet where I can't enable power saving mode for some reason.  I click on the power button but the battery will drain off in a few hours unless I have to manually shut down the tablet which is annonying.  Is there a way to fix this issue?  Thanks.
    This question was solved.
    View Solution.

    We had a good size thread about it all here but I cant seem to find it, so I'll give you the short version. 2 things are known to prevent the cpu from sleeping and drain the batter when the tablet is in sleep mode.
    One is the audio driver, the workaround is to keep the volume at ZERO (This is equivilant to mute). 
    the second is bluetooth/wifi (There is an explorer process that is getting stuck on), the work around is to turn airplane mode on when you arn't using the tablet. 
     Found it: http://h30434.www3.hp.com/t5/Windows-Tablets/Stream-Tablets-Standby-Battery-Drain-Workaround/td-p/47...

  • How to use both EBS OEL 64bit OVM Temp & SOA/Weblogic OEL 32bit Template?

    I want to use EBS vision OVM Templates on linux 64bit. But other OVM templates (SOA, Weblogic etc) that I need to run GRCM are available only under linux 32. How do I go about it if I want to use GRCM (Oracle Gov, Risk & Compliance Manager).

    I want to yse EBS vision OVM Templates on linux 64bit. But other OVM templates (sSOA, Weblogic etc) that I need to run GRCM are available only under linux 32. How do I go about it if I want to use GRCM (Oracle Gov, Risk & Compliance Manager).If only 32-bit version is available then you need to use Linux 32-bit.
    Thanks,
    Hussein

  • How to use both a PowerMac G5 and a remote PowerBook G4?

    I just finished installing my new 2.3DC G5 and migrating my info from my Powerbook. I also set up a wireless network with Airport Express. Everything has been running smoothly and without any problems. So far I am extremely pleased with my new system. I have all my emails, files and everything on the new G5, and I am working from this machine.
    I travel quite a bit, and plan to take my powerbook with me and do not want to have duplicate files on both systems... What is the best way to organize my information? Is there a way to access my G5 from a remote Powerbook? including emails? Remote desktop? File Sharing?
    Is it a big issue that the Powerbook is using Panther and the G5 Tiger? Could it be possible to install Tiger from the G5 dvd on the Powerbook?
    Any tips would be greatly appreciated. Thanks!

    Hi Francisco
    You could subscribe to .mac and use their sync service. You have up to 1 gig of online storage space, and could sync files between the two machines, including address books, browser files, personal files. More info at http://www.mac.com. I'm not sure if this works with Panther as well as Tiger, but I would assume it would.
    Note you will not be able to install Tiger on the Powerbook with your G5 DVD - not only is this against the licensing agreement, the DVD is most likely keyed to the type of platform it was provided with (i.e. the PMG5)
    With regards to the emails, you can keep these syncd between the two machines without .mac - just set up your mail retrieval settings so that a copy of the mail remains on the server, and is only deleted once the mail is deleted locally from your machine.
    Another way would be to keep your most important files on a USB memory stick, and put it in which ever machine you want.
    You can of course also set up file sharing or use remote desktop, however this would mean leaving the G5 turned on when you go travelling, and you would be reliant on Internet access in order to use it.
    HTH
    Simon

Maybe you are looking for

  • Problems with existing stock and batch management indicator

    Hi, We would like to set the batch management indicator for a material. However, there is stock on the material for the given plant. The different stock categories for the plant/material combination are as follows (according to transaction MMBE): Unr

  • Download pdf into browser, object not stored in wwv_flow_files

    Was wondering if you’re able to help? I want to view a pdf I’ve stored in a blob column via APEX. I can view pdf’s I’ve uploaded and stored via apex i.e. stored in wwv_flow_files, but not objects stored in other tables. To help see what I’m doing I w

  • My Macbook pro retina battery is not working

    Hello everybody, I kinda need help, maybe somebody here can give me an advice. I kinda destroyed my Macbook pro retina with coffé My father spilled the coffé on the table and the coffé went exactly inside the laptop. It didnt work but after complete

  • Missing Images in swf file in dreamweaver

    Hello, I was hoping someone could help me. I made a image slide show in Flash (CS3) and wanted to put in in Dreamweaver (CS3). I published the file in flash and went over to dreamweaver and did the insert - media - flash command and added the .swf Wh

  • User 2 photo library has become unreadable

    I am the adminstrator of our iMac. My wife is the other user and when she tries to access her photo library a message appears: "photo library has become unreadable .." Does anyone know how to resolve this?