Advertisement Jump to content
  • Advertisement

RiBi

Member
  • Content Count

    138
  • Joined

  • Last visited

Community Reputation

202 Neutral

About RiBi

  • Rank
    Member

Personal Information

  • Role
    Programmer
  • Interests
    Programming

Social

  • Twitter
    richardbiely
  • Github
    richardbiely
  1. RiBi

    GPU\CPU Image Processor

  2. Anyone would like to try it?
  3. Your specs are fine. Try now. When parsing OpenCL platforms and devices, I did case-sensitve comparsions instead of case-insensitive ones. I hope the issue does not remain. If it does, maybe deleting both OpenCL.dll files could help.
  4. Hi, I'd like you all to try out my application which compares the image processing speed of you GPU and GPU. This is my bachelor thesis application I put together in just a couple of days so don't expect anything amazing. The application is shipped in 32 and 64 bit version. All you need to do is to click the "Batch test" button, select the image2.bmp and post the generated txt file results along with your system specs here (or to richard.biely at gmail com) . The test might take a while (max. 15 minutes) and you system might stop responding during the time the test is running, so don't panic if that happens Hopefully, the app won't crash for you The download link is here [media]http://www.gamedev.net/gallery/image/759-app/[/media] Your help would be greatly appreciated, thank you, Richard EDIT: There is a bug in Cloo OpenCL framework for which there seems to be no proper solution right now, so for some of you the program might not work regardless of my effort. Program will work for ATI only graphics card, because NVIDIA has yet to make a serious OpenCL 1.1 driver.
  5. The problem really was in my malformed XML code. I was so concentrated on the implementation of the parser that I completely forgot the XML could be the problem. I can't belive to have spent a day trying to solve this without noticing :) Once again, thank you a lot.
  6. Hi, I am trying to load a XML string from a buffer stored in memory via an IXMLDOMDocument interface. Program returns no errors, but somehow it does not seem to work the way I would like it to. // Stream CComPtr<IStream> stream; HRESULT res = ::CreateStreamOnHGlobal(NULL,TRUE,&stream); if(FAILED(res)) cout << "Stream COULD NOT be created" << end; // Buffer (I removed the backslashes, for it placed the code into a single line which is not nice for viewing) const CHAR buffer[] = { "<?xml version=\"1.0\" encoding =\"windows-1250\"?> <Head> <Module moduletype=\"Module\" Name=\"Name\" IP=\"128.0.0.1\" Port=\"1234\" Command=\"0\"/> </Head><Data> <Bus ID=\"1\"><Unit Address=\"8\" UnitType=\"FOST\" Status=\"0\"> <Inputs><Input Name=\"Vstup 1\" ID=\"1\" Valid=\"1\"/></Inputs> </Unit></Data>" }; //Buffer into stream LARGE_INTEGER liPos = {0}; ULONG written; stream->Write(buffer, sizeof(buffer), &written); cout << "Read:" << sizeof(buffer) << " Written:" << written << endl; // Doc CComPtr<MSXML2::IXMLDOMDocument> doc; res = doc.CoCreateInstance(__uuidof(DOMDocument30)); if(FAILED( res )) cout << "XMLdoc CoCreateInstance error" << endl; // Load stream res = doc->load(CComVariant(stream)); if(FAILED( res )) cout << "loadXML error" << endl; // Get node list CComPtr<MSXML2::IXMLDOMNodeList> nodeList; doc->get_childNodes(&nodeList); // Get number of nodes in the list long len; nodeList->get_length(&len); cout << len << endl; This is what I do. I create an array holding my XML, create an IStream and IXMLDOMDocument. After initiation, I try to load the array into XMLDOMdocument with the load function. Then I call get_childNodes(..) followed by get_length(..) which returns a zero (which is wrong, obviously). I would be very greatful if you could help. What am I doing wrong? Thank you in advance.
  7. RiBi

    RibiCPU

    Hi! I have always wanted to make a program that would be capable of detecting the basic information about my computer. However, the task proved to be rather time consuming, so I decided to make just a simple CPU detector. I called it nice and egoisticaly - RibiCPU. My main inspiration was the well-known CPU-Z. RibiCPU is still nowhere near its level, but it is slowly getting there. It is a small command line program that creates a ribiCPU.txt file in which CPU data is stored. In its current state, it should be able to detect all Intel and AMD based CPUs from P5/K5 up to Core 2 Quad Yorkfield/Athlon 64 X2 (support for Phenom is yet to come). But to make sure everything works as it should I require your assistance. I would like you to run the program and let me know about the results it generated. After I get rid of its drawbacks I would like to improve it in several ways (nice looking GUI, voltage and FSB speed detection etc.), but that really depends on the help you provide. ribiCPU.exe Known issues: - cannot properly detect cache sizes on NetBurst processors - the clock speed is sometimes detected wrong Thank you in advance! [Edited by - RiBi on January 6, 2008 1:17:48 PM]
  8. Quote:Original post by Rompa Quote:Original post by Hodgman ... but the standard aspect ratio for LCD monitors is 5:4 ... I have 3 widescreen LCD monitors, and all of them are 16:10. I've never actually seen a 5:4, so I'm curious where these figures come from? There are two standard versions of LCD monitors. One with an aspect ratio of 5:4 (mostly 17" and 19" because their native resolution is 1280x1024) and second with an aspect ratio of 16:10 (widescreen models; 20" and bigger models because their native resolution is 1440x900, 1680x1050 etc.). An 4:3 aspect ratio is typical for CRT monitors, because their recommended resolution was like 1024x768, 1280x960...
  9. Oh, that really have solved my problem. Thank you a lot!
  10. Hello, I just recently run into a problem with function pointers. I though I understand their concepts and used them many times already. However, until now, I have never tried to do the following: class CLASS; void (CLASS::*FOO)(); class CLASS { public: void foo() { printf("foo"); } void foo2() { FOO=&CLASS::foo; FOO(); } }; int main() { CLASS c; c.foo(); c.foo2(); return 0; } I expected the given code to output two "foo" messages, but on the line with FOO() statement, the compiler informs me with "error C2064: term does not evaluate to a function taking 0 arguments" error message. I went through many articles about function pointers and classes, but none of them have solved my problem so far. What am I doing wrong? Thank you in advance. [Edited by - RiBi on July 8, 2007 2:36:17 AM]
  11. Thank you a lot. I'll take a look at it.
  12. It is quite some time since I had run into problem I can't solve and that is why I am counting on you guys. :) I have an application consisting of three parts - Core.lib, Video.dll and App.exe. In Core.lib there is a logging function writing output into log.txt via ofstream. When I use this funtion inside of Core.lib or App.exe, everything is fine and text is written into log.txt. However, when I use it inside of Video.lib, nothing seems to be written into the file. Do you have an idea why? Thank you in advance. [Edited by - RiBi on February 25, 2007 11:40:00 AM]
  13. Yes, that solved that error. I thought wcscpy_t handles the parameters the same way as strcpy_t. You were a great help.
  14. Hi, after two houres spended on trying to resolve this problem myself (without success) I hoped you guys have experienced something like this yet and decided to ask you for help. After I quit my program I get exactly this error: "Run-Time Check Failure #2 - Stack around the variable 'Main' was corrupted." Source code: I shall not write all that #ifndef APP_H #define APP_H #endif stuff. Just imagine as if it was here... /*** application.h ***/ class CApplication { protected: // successor methodes CApplication(); // default values for all variables virtual ~CApplication(); virtual bool InitBase() { return true; }; // initiate the base data virtual void ReleaseBase() {}; private: void Loop(); // message loop public: void Run(HINSTANCE); // window creating, registration, calling of "protected" methodes LRESULT CALLBACK MessageHandler(HWND, UINT, WPARAM, LPARAM); }; /*** application.cpp ***/ #include "application.h" static CApplication *g_spApp = NULL; CApplication::CApplication() { g_spApp = this; ... } void CApplication::Loop() { ... } void CApplication::Run(...) { ... } L. C. MessageHandler(...) { ... } /*** main.cpp ***/ class CMain: public CApplication { }; int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { CMain Main; Main.Run(hInstance); return 0; } Do you have an idea how to solve that? I use VS2005 if it helps. Thank you in advance. EDIT: I have just realized that if I don't use UNICODE I don't get that error. How can this be? /*** globals.h ***/ #ifndef UNICODE #define UNICODE #endif ... #ifdef UNICODE #define RE_STRCPY(dest,size,src) wcscpy_s(dest,size,src) #define RE_STRCAT(dest,size,src) wcscat_s(dest,size,src) #else #define RE_STRCPY(dest,size,src) strcpy_s(dest,size,src) #define RE_STRCAT(dest,size,src) strcat_s(dest,size,src) #endif /*** application.cpp ***/ CApplication::CApplication() { ... // both m_cClassname and m_cWindowName are arrays of 32 TCHARs RE_STRCPY(m_cClassName ,sizeof(TCHAR)*32,RE_CLASSNAME); RE_STRCPY(m_cWindowName,sizeof(TCHAR)*32,RE_WINDOWNAME); ... } [Edited by - RiBi on January 23, 2006 7:42:30 AM]
  15. RiBi

    Things I noticed today

    Yeah, you get right to the point. :)
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!