Showing posts with label Visual Studio. Show all posts
Showing posts with label Visual Studio. Show all posts

Wednesday, June 15, 2011

AMD gDEBugger, an advanced OpenGL and OpenCL debugger

AMD have released an integrated debugger for OpenGL and OpenCL to Visual Studio.



AMD gDEBugger is an advanced OpenGL and OpenCL debugger, profiler and memory analyzer. Actually AMD gDEBugger is based on the well known gDEBugger by Graphic Remedy. This new debugger is a plugin for Visual Studio and supports all capabilities of the original gDEBugger as well as new features.

 "gDEBugger takes the mystery out of debugging OpenCL and OpenGL, allowing developers to peer into computer and graphic memory objects such as OpenCL images to view their contents as they change from write, copy, and kernel operations. Allocated OpenCL and OpenGL objects are monitored to allow detecting memory leaks and the scenarios that caused the leaking objects to be created, API function call logs can be viewed and saved and unrecommended and deprecated functions and behaviors are marked, with best-practice alternatives offered. "

AMD gDEBugger download should be available shortly.

More information on the official homepage: AMD gDEBugger @ AMD.
Source : Geeks3D

Friday, March 18, 2011

Configure Matlab to use Visual 2010 C/C++ compiler

By default Matlab 2009 have only a C compiler (mex file compiler).
It could detects the Visual compiler for the 2005/2008 version but not for the 2010 version.

Hopefully MathWorks have released a patch ;)

Link : VS2010MEXSupport.zip

Subject:

How can I use Microsoft Visual C++ 2010 to create MEX files with MATLAB 7.10 (R2010a)?

Problem Description:

I would like to use Visual C++ 2010 to create MEX files for use in MATLAB.

Solution:

The Microsoft Visual C++ 2010 compiler is not supported on the released version of MATLAB 7.10 (R2010a), but support can be added by installing a patch. To install the patch:

1. Download the patch attached to this Solution. The patch includes files needed to support these combinations of MATLAB and Visual C++ 2010:
• Visual C++ 2010 Professional and 64-bit MATLAB 7.10 (R2010a)
• Visual C++ 2010 Professional and 32-bit MATLAB 7.10 (R2010a)
• Visual C++ 2010 Express (Windows SDK 7.1 also required) and 64-bit MATLAB 7.10 (R2010a)
• Visual C++ 2010 Express and 32-bit MATLAB 7.10 (R2010a)

2. Confirm that you are running MATLAB 7.10 (R2010a). You can check this using the About box available at Help->About MATLAB.

3. Unzip the contents of the patch into your MATLAB installation. This can be done from within MATLAB itself with the command:
unzip( path_to_zip_file, matlabroot);

4. Set up MEX to use Visual C++ 2010 with the command:

mex –setup Visual C++ 2010 should now be among the listed options.

Note that this patch will only work with MATLAB 7.10 (R2010a). Using this patch with any version of MATLAB is not supported.

Other MathWorks products such as Real-Time Workshop do not support Visual C++ 2010.

Source : MathWorks

Wednesday, April 14, 2010

Visual Studio Tips and Tricks

I have discover today a great feature of Visual Studio :

It allow you to open a file according only a part of it's name without parsing the tree project structure.

I.E : You want open the file HistoryEntry.cs but you do not where it is...

Two possible solutions :

  • CTRL+D (Go to the search toolbar)
  • type " > open to" it will automatically purpose you the files of the solution that starts with "h"

 Or open the command window in the bottom :

  • Type "open h " (it will purpose you also the files of the solution that starts with "h".

So you it seems that you can do any command from the command window inside the search toolbar by using the magic ">" character !

Psst : CTRL+G allow you to go to the line number you have choosen.