Skip to main content

Posts

Integration of SQLite3 and Netbeans C/C++ IDE

Few days back, I wanted to use SQLite database for one of my project. I spend couple of hours to find a way to integrate with Netbeans. Maybe many of us will be clever enough to just follow the information given on SQLite website to accomplish this task, but people like me can follow this blog post :)
I am using Netbeans C/C++ IDE ver. 7.1.2 and SQLite ver. 3.7.13 and Windows 7 OS.


Download links for:
Cygwin: (http://cygwin.com/install.html)Netbeans: (http://netbeans.org/downloads/index.html)Sqlite: (http://www.sqlite.org/download.html/)Source Code:sqlite-autoconf-3071300.tar.gzPrecompiled Binaries For Windows:sqlite-shell-win32-x86-3071300.zip is command line shell.For those who are not interested in command line shell:SQLite Database Browser: (http://sqlitebrowser.sourceforge.net/) Apparently, there is not download link but at the bottom of mentioned webpage there is SourceForge.net link. By searching SQLite Database Browser in http://sourceforge.net/, we can download this tool. I hop…

SESC: Simulator Configuration with CMP

Note: I am using LINUX with following specifications, g++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1.

Installing SESC first time, then follow this post SESC Simulator: First Time Installation for instructions.
Building SESC: Make new directory ‘buildcmp’ in ‘sesc’ folder; Simulator can be configured as many set of operations, so recommendation is to create different ‘build’ directory for each configuration. > mkdir buildcmp > cd buildcmp
Configuring SESC For SMP:
> ../sesc/configure --enable-smp
Executable SESC with SMP:
> make ’sesc.smp’ is the executable file for further testing. 
Configuration File:
In case, you want to test simulator with CMP configurations without changing any parameter, there is one file ‘cmp.conf’ present in ‘/sesc/confs/’ folder.
Copy cmp.conf and shared.conf file in the build folder; > cp ../sesc/confs/cmp.conf /home/user/build/ > cp ../sesc/confs/shared.conf /home/user/build/
Running FFT Benchmark: There are few benchmark applications are available in…

SESC: Simulator Configuration with Power Model SMP

Note: I am using LINUX with following specifications, g++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1.

Installing SESC first time, then follow this post SESC Simulator: First Time Installation for instructions.
Building SESC: Make new directory ‘build’ in ‘sesc’ folder; Simulator can be configured as many set of operations, so recommendation is to create different ‘build’ directory for each configuration. > mkdir build > cd build

Configuring SESC For SMP:
> ../sesc/configure --enable-smp --enable-power

Executable SESC with SMP:
> make ’sesc.smp’ is the executable file for further testing. 

Configuration File:
In case, you want to test simulator with SMP configurations without changing any parameter, there is one file ‘smp.conf’ present in ‘/sesc/confs/’ folder.
Copy smp.conf and shared.conf file in the build folder; > cp ../sesc/confs/smp.conf /home/user/build/ > cp ../sesc/confs/shared.conf /home/user/build/
Rename ‘smp.conf’ with ‘sesc.conf’.

Compilation SESC with Power Model:

SESC Simulator: First Time Installation

Note: I am using LINUX with following specifications, g++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1.

SESC: Cycle Accurate Architectural Simulator is the official website for SESC Simulator which contains; documentation, SescUtils Package informaiton.

Downloading SESC:
To download pre-compiled binaries of SESC Simulator, use the following instructions in LINUX Shell.
> sudo cvs -d:pserver:anonymous@sesc.cvs.sourceforge.net:/cvsroot/sesc login (When password is requested, just press enter) > cvs -z3 -d:pserver:anonymous@sesc.cvs.sourceforge.net:/cvsroot/sesc co -P sesc (By default, ‘sesc’ folder will be checked out in home folder)Requirements:
Be sure that flex and bison is already installed > sudo apt-get install zlib1g-dev Building SESC:
Make new directory ‘build’ in ‘sesc’ folder;
Simulator can be configured as many set of operations, so recommendation is to create different ‘build’ directory for each configuration.
> mkdir build
> cd build

Configuring SESC:
SESC provides dif…

SESC: Splash2 Benchmark Compilation Issue Resolved

I am using LINUX with following specifications, g++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1

After spending sometime, I am able to compile Splash2 Benchmark kernel applications with small modification in makefile of each application.
To download Splash2 benchmark, click -- > SESC: Splash2 Benchmark Kernels & Applications Package
Modification in Makefile of Each Kernel Application:
CFLAGS = -O2 -Olimit 2000 -w
LDFLAGS = -lmpc -lm

Replace the above two lines with
CFLAGS = -O2 -w
LDFLAGS = -lm

Then, run make to get the executable files e.g. CHOLESKY, FFT, LU, and RADIX.

To check associated parameters with each application, run the following command.
> ./CHOLESKY -h
> ./FFT -h
> ./LU -h
> ./RADIX -h

Rest of the work is all yours :)



Other Links:
SESC Superescalar Simulator Initial GuideSESC Simulator: First Time InstallationSESC: Simulator Configuration with Power Model SMPSESC: Simulator Configuration with CMPSplash2 Benchmark Kernels Applications

SESC: SuperESCalar Simulator Initial Starting Guide

Many of us has problems in order to get started with SESC Simulaor, because there is not too much information available on the web and if there is some information then it is not at one place. So, we have to spend like hours to get tune with SESC to start our work.
The in depth document about SESC Simulator.

SESC: SuperESCalar Simulator
If viewers want to share information or facing problems, we can at least try to solve together :)


Other Links: SESC Simulator: First Time InstallationSESC Simulator Configuration With Power Model SMPSESC: Simulator Configuration with CMPSplash2 Benchmark Kernels Applications

SESC: Splash2 Benchmark Kernels & Applications Package

SPLASH -- "Stanford Parallel Applications for Shared Memory"
Splash benchmark suite, developed by group of people working in Stanford University, contains kernels and applications  for multiprocessor systems performance check.
Kernels: Complex 1D FFT Blocked LU Decomposition Blocked Sparse Cholesky Factorization Integer Radix Sort
Applications: Barnes-Hut Adaptive Fast Multipole Ocean Simulation Hierarchical Radiosity Ray Tracer Volume Renderer Water Simulation with Spatial Data Structure Water Simulation without Spatial Data Structure
Download Splash2 Package: > cd ~/benchmarks > mkdir splash2 > cd splash2 > wget http://www-flash.stanford.edu/apps/SPLASH/splash2.tar.gz > tar -xzf splash2.tar.gz
For sure after downloading Splash2 benchmark files, you need to compile it too in order to use for your work and for further development purposes. If you need Pre-compiled Binaries of Splash2 benchmark, you can write me Email or from my GoogleDrive. You can check this pag…