Monthly Archives: May 2008

Small Log System

Here is a small piece of code that can be useful if you need to quickly generate traces (or log) in your apps:

class cLog
{
public:
  cLog(char *logfile){};
  static void trace(const char *s)
  { if(s) log <<  s << std::endl; };
  static std::ofstream log;
};
std::ofstream cLog::log("c:\\app_log.txt");

Just use it as follows:

cLog::trace("this is a log");
cLog::trace("this is a second trace");

Geeks3D.com

[French] Un petit post pour dire que je viens de démarrer un nouveau site exclusivement dédié aux actualités du monde de la 3D: cartes graphiques, programmation OpenGL et Direct3D, softs 3D, demoscene et tous les autres choses cool que j’oublie.

Ce site de news se trouve ici: Geeks3D.com.

Pourquoi ce site? Tout simplement parceque c’est une excellente façon pour moi de faire de la veille technologique dans le domaine de la 3D. J’ai depuis longtemps fait des news: d’abord sur le site oZone3D.Net puis dans le blog que vous êtes en train de lire. Mais cela commençait
à devenir un peu confu: news postées sur oZone3D.Net, news postées sur l’Infamous Lab, en fait je ne savais plus trop où poster les news. La solution était donc toute simple: créer un nouveau site rien que pour les news!

En un mot: Geeks3D.com pour les news 3D et le JeGX’s Infamous Lab pour mes demos, tests et autres délires plus perso.

Donc voilà, si vous avez des actus relatives au monde de la 3d que vous voulez faire connaitre, envoyez-les moi (jegx at ozone3d.net), je me ferai un plaisir de les publier sur Geeks3D.
[/French] [English] A small post to say I have set up a new website dedicated to the Latest of the world of 3D: graphics cards, OpenGL and Direct3D programming, 3d softwares, demoscene and all other cool things I forget.

This website is here: Geeks3D.com.

Why this new website? Simply because it’s perfect way for me to keep pace with the latest in 3d.
I’m in the news for a while: first in the oZone3D.Net website, then in the Infamous Lab (actually oZone3D.Net+Infamous Lab) but now it was getting a little confused to know where posting the news. The solution was very simple: starting a new website only for the news!

In a word: Geeks3D.com for 3D news and JeGX’s Infamous Lab for my demos and tests/reviews.

By the way, if you have some cool news that match Geeks3D you want to spread, feel free to send them (jegx at ozone3d.net), I would be glad to publish them.
[/English]

NVIDIA’s David Kirk Interview on CUDA, CPUs and GPUs

David Kirk, Nvidia’s Chief Scientist, interviewed by the guys at bit-tech.net.

Read the full interview HERE.

Here are some snippets of this 8-page interview:

page1
“Kirk’s role within Nvidia sounds many times simpler than it actually is: he oversees technology progression and he is responsible for creating the next generation of graphics. He’s not just working on tomorrow’s technology, but he’s also working on what’s coming out the day after that, too.”
“I think that if you look at any kind of computational problem that has a lot of parallelism and a lot of data, the GPU is an architecture that is better suited than that. It’s possible that you could make the CPUs more GPU-like, but then you run the risk of them being less good at what they’re good at now”
“The reason for that is because GPUs and CPUs are very different. If you built a hybrid of the two, it would do both kinds of tasks poorly instead of doing both well,”

page 2:
“Nvidia has talked about hardware support for double precision in the past—especially when Tesla launched—but there are no shipping GPUs supporting it in hardware yet”
“our next products will support double precision.”
“David talked about expanding CUDA other hardware vendors, and the fact that this is going to require them to implement support for C.”
“current ATI hardware cannot run C code, so the question is: has Nvidia talked with competitors (like ATI) about running C on their hardware?”

page 3:
“It amazes me that people adopted Cell [the pseudo eight-core processor used in the PS3] because they needed to run things several times faster. GPUs are hundreds of times faster so really if the argument was right then, it’s really right now.”

Continue reading »