Proper way to test the dual GPU cards?

I'll be receiving my Mac Pro tomorrow and I wanted to know if there is a way to properly put both GPU's through their paces to make sure they are both functioning properly? I've found a few threads where people realize their second GPU ( not used most of the time ) was in fact defective. Is there something on OS X that will test this? I plan to go to bootcamp and do some usual cross-fire tests, but something on the OS X side might be useful.
TIA
-Andres

Sorry to have to tell you this guys but all of the above are broken.
First of all... you should all take a good look at what the read() method actually does.
http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html#read(byte[], int, int)
Pay special attension to this paragraph:
Reads up to len[i] bytes of data from the input stream into an array of bytes. An attempt is made to read as many as len[i] bytes, but a smaller number may be read, possibly zero. The number of bytes actually read is returned as an integer.
In other words... when you use read() and you request say 1024 bytes, you are not guaranteed to get that many bytes. You may get less. You may even get none at all.
Supposing you want to read length bytes from a stream into a byte array, here is how you do it.int bytesRead = 0;
int readLast = 0;
byte[] array = new byte[length];
while(readLast != -1 && bytesRead < length){
  readLast = inputStream.read(array, bytesRead, length - bytesRead);
  if(readLast != -1){
    bytesRead += readLast;
}And then the matter of write()...
http://java.sun.com/j2se/1.3/docs/api/java/io/OutputStream.html#write(byte[])
write(byte[] b) will always attempt to write b.length bytes, no matter how many bytes you actually filled it with. All you C/C++ converts... forget all about null terminated arrays. That doesn't exist here. Even if you only read 2 bytes into a 1024 byte array, write() will output 1024 bytes if you pass that array to it.
You need to keep track of how many bytes you actually filled the array with and if that number is less than the size of the array you'll need pass this as an argument.
I'll make another post about this... once and for all.
/Michael

Similar Messages

  • What is the proper way to use the write method?

    What is the proper way to use the OutputStreams write method? I know the flush() method is automatically called after the write but i cant seem to get any output
    to a file. The char array contains characters and upon completion of the for loop the contents of the array is printed out, so there is actually data in the array. But write dosnt seem to do squat no matter what i seem to do. Any suggestions?
    import java.io.*;
    public class X{
    public static void main(String[] args){
    try{      
    FileReader fis = new FileReader("C:\\Java\\Test.txt"); //read chars
    FileWriter fw = new FileWriter("C:\\Java\\Test1.txt"); //read chars
    File f = new File("C:\\Java\\Test.txt");
    char[] charsRead = new char[(int)f.length()];
    while(true){
    int i = fis.read(charsRead);
    if(i == -1) break;
    // fw.write(charsRead); this wont work
    // but there is infact chars in the char Array?
    for(int i = 0; i < charsRead.length -1 ; ++i){
    System.out.print(charRead);
    }catch(Exception e){System.err.println(e);}

    Sorry to have to tell you this guys but all of the above are broken.
    First of all... you should all take a good look at what the read() method actually does.
    http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html#read(byte[], int, int)
    Pay special attension to this paragraph:
    Reads up to len[i] bytes of data from the input stream into an array of bytes. An attempt is made to read as many as len[i] bytes, but a smaller number may be read, possibly zero. The number of bytes actually read is returned as an integer.
    In other words... when you use read() and you request say 1024 bytes, you are not guaranteed to get that many bytes. You may get less. You may even get none at all.
    Supposing you want to read length bytes from a stream into a byte array, here is how you do it.int bytesRead = 0;
    int readLast = 0;
    byte[] array = new byte[length];
    while(readLast != -1 && bytesRead < length){
      readLast = inputStream.read(array, bytesRead, length - bytesRead);
      if(readLast != -1){
        bytesRead += readLast;
    }And then the matter of write()...
    http://java.sun.com/j2se/1.3/docs/api/java/io/OutputStream.html#write(byte[])
    write(byte[] b) will always attempt to write b.length bytes, no matter how many bytes you actually filled it with. All you C/C++ converts... forget all about null terminated arrays. That doesn't exist here. Even if you only read 2 bytes into a 1024 byte array, write() will output 1024 bytes if you pass that array to it.
    You need to keep track of how many bytes you actually filled the array with and if that number is less than the size of the array you'll need pass this as an argument.
    I'll make another post about this... once and for all.
    /Michael

  • The dual video cards of the 15" MBP

    Hi,
    I have a question about the onboards graphics and the other graphics card of the 15". Does it always use the shared graphics and then use the other card for extra processing? Or can you control which one it uses? Or does it change which one it uses depending on the need?
    I ask because I use to be able to play Fallout 3 on Windows in Bootcamp on my iMac but not on my Macbook because the MacBook has shared graphics. Am I going to be stuck with this limitation again if I try this on a 15" MBP?
    (it won't sway my choice of buying an MBP, but it will save me from dealing with the whole windoze thing again if it won't work anyway)

    Hi Dilnik,
    As I understand it, Dilznik, when running under bootcamp the GPU always defaults to the dedicated 9600 graphics processor. The "shared memory" 9400 graphics processor is not used at all.
    In other words you should not have any problems with Fallout 3 on account of the presence of the Dual Graphics card with the "upmarket" versions of the current MBP15.
    Cheers
    Rod

  • What is the proper way to open the app store  for ios

    Using Air3.1 to develope a game.
    I want to have links on my main menu which will open the iOS app store for a specific application.
    The only way I have found to do this is by opening a url "http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=<THEAPPIDHERE>&mt=8"
    However, while this does work, so to speak, when I try to go back to the application, it starts up as if it had crashed... and it does several "redirects" before it get's where it is eventually going.
    Is there a better/proper way to open the app store?
    Cheers
    dave

    Read this page, especially the later examples:
    http://bjango.com/articles/ituneslinks/

  • Is there a way to test the Firewire 800 port?

    My firewire 800 port seems to no longer work on my Imac. Before bringing the machine to repair, I was wondering if there is any way to test the port, or to reset it. I remember I had a similar issue a few years ago and I could make it work again.
    Thank you for your help!

    Hi Felix
    1. Try resetting the FireWire bus as described in the +What to do if your computer won't recognize a FireWire or USB device+ article below:
    http://support.apple.com/kb/HT1317?viewlocale=en_US
    2. Connect a FireWire device and open your *System Profiler,* then in the Hardware section select FireWire to see if the device is shown on the bus.
    Dennis

  • What is the proper way to move the iTunes (v11) Media folder to an external USB HD?

    What is the proper way to move the iTunes (version 11) Media folder to an external USB HD?  I have tried to following listed instructions, but although I can get the songs listed, their locations are not found.

    Tried the option key, but it would not let me select the copied iTunes folder.  Also changed the path for iTunes Media Location folder.  But still iTunes is not happy.  I could try the alias route, but I don't have an iTunes folder that iTunes is happy with to point it to.  All of the songs and even the playlists will come up, but it seems some form of the folder and its files must remain on the internal hard drive.  But I want to move it off because it is out of space.  Any other thoughts?
    I have all of the music etc files what I do not want to lose is the playlists.  I don't care about the play counts.  I would be glad to reimport all of the songs to the newly designated folder, but won't I lose my playlists?
    Thanks for your help.

  • HT1688 i'm having trouble charging my phone, do you know of any proper ways of cleaning the charging port, or any technical ways of fixing the phones charging abilities?

    I'm Having trouble charging my Iphone, do you know of a proper way of cleaning the charging port, or any other ways of fixing the phones charging abilities? 16g IPhone4

    Clean charging port with clean dry toothbrush. If something more than dust, dirt, debris is present, clean with toothbrush and a small amount (drop) of Isopropyll Alcohol. The pins are on top of the dock midrib.

  • Losing connection to external drives, tried disc utility got a message "No live updatin...? Retried new connections; is there a way to test the external usb hub?  The drives will occasionally display in Apple profile.  Any help would be deeply appreciated

    Losing connection to external drives, tried disc utility got a message "No live updatin...? Retried new connections; is there a way to test the external usb hub?  The drives will occasionally display in Apple profile.  Any help would be deeply appreciated

    It's not just you, I can't authorise my phone. It seemed to go down just after I started the update (it wasn't my fault though). I am using chrome, and it does not seem to be a firewall issue, or the bannerblock issue that I read about else where, since I dont have that program installed. Strange though how the support forum is still running. If I go to http://www.apple.com/support I get nothing, but googling topics allows me to see em.

  • FP-2000 Unconfigur​ed - Is there a way to remove the CP flash card and reload the firmware externally​?

    I have an FP-2000 Ethernet module that is visible in MAX after a reset (0.0.0.0) as verified by the serial number yet when I try to configure an IP address, subnet, gate, etc. it give me the response 1) Disconnected - Rebooting 2) initializing 3) back to unconfigured.  It will not accept an IP, although I have tried many different ways.  I have also tried to communicate through serial and it will not recognize it.  The status light continuously blinks one blink (reset mode).  Has anyone had this problem and is there an external program that may be able to load the firmware on the compact flash card through an external CP flash read/write?
    Andrew
    WInnipeg,MB.CA

    Hey Andrew,
    I know we've been working on this issue and I thought I'd post some additional information in case another customer has the same issue as you. It appears as if your FP-2000 got stuck in IP Reset mode. This could be caused by a few things that can only be determined by contacting National Instruments and sending in the unit for an RMA. The RMA will run diagnostic tests to determine the cause of the problem and it will be fixed by our manufacturing team.
    Stephanie O.
    DIAdem Product Manager
    National Instruments

  • What is the Proper way to nullify the VECTOR after it's scope is over

    I am using Vectors and Array lists at many places in my Web Application, It is neccessary to use them.
    In some processes I m storing bulk amount of data into vector due to that the performance of my application will be decreased, for that I have to nullify the vector after it's scope is over.
    To nullify I m using Vector v = new Vector()
    v.clear().
    The above method is suitable in case of simple object data like strings and other values.
    But I wanna know that If I m using HashMap and storing bulk data in it and then I m storing each HashMap into vector, what is the proper way.
    Does I have to iterate each object of HashMap from vector and set them as null and then set vector as null or directly I can use v.clear() method??
    If any having any answer regarding my question then plz reply your each valuable reply will be appriciable.
    Thanks in advance......!!

    JBOSS2000 wrote:
    Each time in loop a new object of vector is created and each time I m nullifying it. Thats what I m doing.
    Thats why I m nullifying it.
    Even if I'll declare it out side the loop then also for the each iteration I have to nullify it cause what I m doing is I m inserting the data into database in each iteration of loop, So that I think it is must to nullify the objects each time.If it is constructed inside the loop then you do not have to nullify it. If it is constructed outside of the loop and you want to empty it for each iteration then just clear() it.

  • Proper way to get the latest published Major version of Document

    Hi,
    I have a Document Library which has "Create major and minor (draft) versions" enabled.
    Now, from my C# application I need to fetch the latest major version of a document from that library.
    What is the proper way to do this?
    As of right now, I do the following:
    return sourceFolder.Files["documentName.docx"]; // sourceFolder is a SPFolder object
    Now, I don't trust that this will always give me the latest published major version of the document. Or am I wrong? If I'm wrong, how should I do this?
    Thanks!

    Problem
    When you store critical documents in the SharePoint libraries, sometimes it becomes necessary to track all the changes and to maintain version history for them.
    Solution
    There might be a time when you would need to restore files back to an older version if any inadvertent change happens. You can also track changes for auditing purposes.
    So how does SharePoint allow creating different versions of documents? How does version history work? What are the different types of versions we can maintain for our library or list and how can we revert back to an older version?
    SharePoint allows you to enable (by default it's disabled) versioning on lists and libraries. Once enabled, SharePoint will maintain multiple versions of the document or list which gets incremented on each change iteration. There are three different versioning
    settings:
    No versioning - This is the default setting in which the current version overwrites the older version. There are no previous versions stored. This setting is not recommended especially if your document library contains critical or important
    documents.
    Create major versions - Also called simple versioning, in this setting the document versions will be numbered with whole numbers, called major versions, i.e. 1, 2, 3, 4 etc.
    Create major and minor (or draft) versions - In this setting document versions will be numbered with whole numbers (1, 2, 3, 4 etc.) as well as numbers with decimals (.1, .2, .3, .4 etc.). The whole number is called the major version
    (indicates final copy) and the numbers with a decimal are called minor versions (indicates work is still in progress). You use this setting if your document goes through several iterations/drafts/reviews (minor versions) and you want only the final copy (major
    version) to be published to a broader audience.
    Please note for a list or list items, the only option available for versioning is creating major versions, no minor versions are created.
    Once versioning is enabled SharePoint automatically and transparently creates the next version of the document whenever a user updates a document in the library. These are some of the different scenarios when SharePoint will create a new version for your
    document or list item:
    When a new document or list item is created or uploaded into SharePoint, version 1 is created if the option
    Create major versions option is enabled or version 0.1 is created when
    Create major and minor (or draft) versions is enabled (not applicable for list items) and when you publish it then next higher major version is created.
    When you upload a document with the same name as an already existing document in the library and check the
    Add as a new version to existing files check box, the existing file becomes an older version and the new uploaded document will have next higher version number.
    When any properties (metadata fields) of the document or list item is changed.
    When you Check-in a document that was previously Checked-out.
    When you open a document in the associated application, edit and save it for the first time. On subsequent changes no new versions will be created as long as you don't close the application and re-open it.
    When you restore the old version of the document.
    Please note, although the demonstration in this tip has been shown in SharePoint 2010, the versioning feature has been part of previous SharePoint versions as well.
    Reference URL with Example :
    http://www.mssharepointtips.com/tip.asp?id=1047
    Thanks
    Jaison A

  • HT1595 cannot connect ATV to actiontec router with wired ethernet.  router does not see ATV.  is there a way to test the  ATV ethernet port on the back?

    have an 3g ATV (5.0 4099) wired via coax cable to actiontec MI 424-wr router.  Router cannot see ATV.  Is there a way to test ethernet connector on back of ATV?  ATV does work when setup for wireless but its much too slow for actual use when configured that way.

    Steve,
    I think the isssue is clearly that your router is not acting as a DNS Server.  You will need to contact Verizon to see how to configure it so that it does supply the DNS addresses.  If you can configure it in your Router try using 8.8.8.8 and 8.8.4.4 as the DNS Server addresses.  These point it to Google's Public Domain DNS Servers.  There are others (opendns.org).  But for now these will hopefully get you up and running.

  • How can I test the digital media card reader?

    New notebook DV6-6B58SA digital media slot is not responding to plug in memory DUO SD card.
    The SD has successfully downloaded via the USB.
    The PMB has been successfully updated to ver.5.8.02,
    Are there any diagnostics to test the SD reader slot.?
    I remember that Realteck (?) softwaredriver upgrades failed until tech. support recommended uninstall and reinstall.

    Hi Allan
    I have tried ten different makes of card and they are all the same. Even tried a brand new one straight out of the packet. That did not work. All the cards work with my wifes old windows laptop.
    Chris

  • Any way to test the connection from my web browser back to SAP?

    is there a way to test/monitor the connection/data that is sent from my Internet Explorer back to SAP when the Submit button is pressed?

    I would love to find a utility that lets me measure the speed of my network without the variable of including my internet connection.
    If you are using wireless and you have Mac laptop handy, take some quick measurements at different locations around your home.
    Hold down the option key on your Mac while you click on the fan shaped AirPort icon at the top of the screen. Look for the Transmit Rate number and jot that down.
    This represents the maximum speed that your wireless could support at that particular location.
    For example, let's say that your Transmit Rate at a given location is 130. This number is expressed in Mbps, so you would have 130 Mbps.
    You will find that your network speed is much faster than your internet connection speed, which is limited by the type of service that you have selected. If you have a 6 Mbps service, your internet speed and connection will be limited to that number no matter how fast your network number may be.
    Another way of saying the same thing is that your internet connection will always be the bottleneck on your network.

  • Best way to test the planning function in BI7.0

    Hi
    How can we test the planning function other than the wizard.Can it be tested by creating an input ready query on the aggregation level whcih is created on the top of multiprovider joining real time info cube and standard info cube.
    Kind Regards,
    Sarah

    Testing the planning function in planning modeler and planning wizard is the fastest and the best way to verify the planning function.
    In planning modeler, you have the option of executing the planning function in trace mode which helps you to track the changes before and after execution.
    Moreover, if you want to test the PF on the input ready query, you gotta wait until the query is successfully  created in BEx or WAD.

Maybe you are looking for

  • Errors in MDX function of Universe and WebI

    Dear Experts, I need to create a object get MTD, YTD of PS volume measure in Universe get data from Cube in SAP Business Warehouse.I have been tried to do many time and based on OLAP Universe best practice document from Ingo Hilgefort but it still ge

  • Do I begin by scanning my illustration in a pdf and then save it as a png on illustrator?

    Do I begin by scanning my artwork as pdf and then saving it as a png on illustrator?

  • How to bind select options type(LEDAT) to attribute?

    Hi All, I am using SHP_EXTENDED_DUE_LIST FM, in this IX_SELECT_OPTIONS node contains LEDAT, but it is of type select options. I want to bind this to date type attribute. Delivery date :__ to __. while executing original FM we are giving low and high

  • Active X and Excel

    Using LV2012 and Office 2010. I am trying to create a XLS file to collate data from numerous test certifcates to do some analysis on the test data. Got a good working example in the Help section and have modified it to suit my need. It works but I ne

  • Multiplexing errors in iDVD 08

    i am receiving multiplexing errors each time I do the foowing: 1/ open idvd and choose one of the new '08 themes 2/ add 200 images from iPhoto '08 using the media panel 3/ add a track from iTunes 4/ finally choose "save as disc image" from the file m