Skip to main content

Posts

Showing posts from December, 2005

Ubuntu Linux: C and C++ Development tools

Ubuntu - Development tools I spent many hours figuring out why my freshly installed Ubuntu Linux 5.10 virtual machine doesn't compile a very simple C program, even after I use "apt-get install gcc" to install the GNU C compiler. Ubuntu keeps on saying it can't even find the header file "stdio.h". Finally I found the answer at Ubuntu FAQ page here . The site says that C and C++ development were deliberatedly excluded from the typical installation and we need to use apt-get install build-essential to install all the neccessary compilers, headers and libraries. In other words, installing only the gcc package isn't enough. Keywords: ubuntu-linux , c , programming

MPICH2 on Windows XP: No go with MPI_Comm_spawn

I was practicing MPI-2 dynamic process creation on Windows XP, using MPI_Comm_spawn() function call as an alternative to process execution by "mpiexec", but so far haven't been successful. During a search for the previous MPI post, I came across the following Frequently Asked Question (FAQ) on Argonne Website and felt discouraged: MPICH Frequently Asked Questions Q: On Windows, I get an error when I attempt to call MPI_Comm_spawn. A: On Windows, you need to start the program with mpiexec for any of the MPI-2 dynamic process functions to work. I will give up the attempt for the time being and go on the "mpiexec" way. Keywords: windows-xp , mpi , parallel-computing , mpich2

MPICH2 on Windows XP: Launch Failed "error 2 - The system cannot find the file specified"

I had a problem executing a parallel program built with MPICH2 from Argonne National Laboratory. I had been able to use "mpiexec" to execute example codes and my test codes but the followings happened yesterday when I tried to run my "Practice.exe" parallel Hello World code: The current directory is "t:\", which is a subst drive that maps to "c:\Briefcase\Tmp". $mpiexec -np 4 "Practice.exe" launch failed: CreateProcess(Practice.exe) on 'tvs-laptop' failed, error 2 - The system cannot find the file specified. launch failed: CreateProcess(Practice.exe) on 'tvs-laptop' failed, error 2 - The system cannot find the file specified. launch failed: CreateProcess(Practice.exe) on 'tvs-laptop' failed, error 2 - The system cannot find the file specified. launch failed: CreateProcess(Practice.exe) on 'tvs-laptop' failed, error 2 - The system cannot find the file specified. I spent many hours yesterday trying to fin

Fixing a Corrupted Recycle Bin in Windows XP

Computing.Net - norton protected recycle bin I was trying Norton SystemWorks 2006 and didn't like its too-smart Protected Recycle Bin. It always keep the files that I don't want to keep and I don't feel like putting all those file extensions that I don't want it to "protect" in the exclusion list. Today I went ahead uninstalling it but my hard drive is still not clean. While defraging the hard drive, I notice that the defragmenter was still moving around fragmented files in the "Norton Protected Recycle Bin" folder in the hidden "Recycler" folder of the hard drive. I felt like I want to completely remove everything left over by Norton. I went ahead googling for a while and realized from this Computing.net site that we can actually "delete" a recycle bin (of course, also everything in it) in case it's corrupted. We can simply tell Windows Explorer or any favorite file manager to show the hidden files and simply "Shift-Del

Website: AIT Alumni Association, Thailand Chapter

AITAA Thailand Chapter (link updated on Dec 15, 05) I have been involved in the activities of the Thai Chapter of the AIT Alumni Association for a few months. The Thai Chapter plans to launch a full-featured website http://www.aitthai.or.th soon. In the mean time, we have launched an interim site to inform the public about upcoming news and events as well as other useful information. For those AIT friends, please visit the interim AITAA Thailand Chapter site at http://aitthai.blogspot.com . Keywords: ait , alumni , thailand Update: Dec 15, 05: The AITAA Thailand Chapter website is now launched at www.aitthai.or.th . Comments and suggestions are welcome.

Question: How to Launch an MPI Parallel Program Programmatically

I want to link a Java code with the parallel program I wrote five years ago in C. The program utilizes the Message Passing Interface (MPI) library from Argonne National Laboratory of the United States. As far as I can imagine, there seems to be two alternative solutions for me so far. The first one is to use Java Native Interface (JNI) technique to create a C header file the act as a stub linking a Java class to a native library -- in my case, I'm using Windows and Microsoft Visual C++ 2005 and the library will have to be a Dynamically Linked Library (DLL). The second one, maybe, is to link the Java module and the C module by XML Web Services technology by using software tools such as Apache's Axis C++ or Microsoft's dot-Net technology plus SOAP messaging over the HTTP protocol. Microsoft .NET seems to be a whole new world for me and I don't think I have enough time and patience to learn it right now. The solutions left are either to use JNI + C (a Java-wrapper solution

CD/DVD Images: ISO and IMG image files vs. DAEMON Tools Virtual Drive and Nero

I am downloading Windows plaform SDK CD image from Microsoft website. Microsoft says I am downloading an ISO image file but the extension of the file is .IMG and I wonder if I could mount it as a virtual drive in DAEMON Tools . I went ahead Googling for "daemon 4 img" and "img iso rename" . Both search results suggest me that I can simply rename the IMG file to an ISO file and mount the file as a virtual drive in DAEMON Tools or burn it as a CD with Nero. I'll try this once I finish downloading this 400MB+ image file. Keywords: cd-burning , daemon-tools , virtual-drives