Rank: 3373 based on 39 downloads (last 30 days) and 1 file submitted
photo

Gerald Buchgraber

E-mail
Company/University
Technical University of Graz, Austria
Lat/Long
47.06916427612305, 15.45024967193604

Personal Profile:
Professional Interests:
cuda

 

Watch this Author's files

 

Files Posted by Gerald
Updated   File Tags Downloads
(last 30 days)
Comments Rating
30 Jun 2009 Screenshot NVIDIA CUDA-based bilinear (2D) interpolation Incredible speed boost in comparison to the Matlab implementation. (interp2) Author: Gerald Buchgraber bilinear, interpolation, cuda, mex, image processing, interp2 39 11
  • 5.0
5.0 | 2 ratings
Comments and Ratings by Gerald View all
Updated File Comments Rating
28 Sep 2009 NVIDIA CUDA-based bilinear (2D) interpolation Incredible speed boost in comparison to the Matlab implementation. (interp2) Author: Gerald Buchgraber

Well, I haven't tried it yet, but I'm sure it's possible. The included build tools are dedicated to MS Windows. Please leave a notice if you get it running.

24 Jul 2009 NVIDIA CUDA-based bilinear (2D) interpolation Incredible speed boost in comparison to the Matlab implementation. (interp2) Author: Gerald Buchgraber

Dear Darius,
you can find all build params described in nvmex.m
For adding additional include or library paths just use (similar to gcc) the params: -I<pathname> (for include path), -L<directory> (for lib dir) and -l<name> (for lib file).

Hopefully this helps and you get it running!

16 Apr 2009 2D CUDA-based bilinear interpolation GPU assisted fast bilinear interpolation Author: Alexander Huth

Hi all!
I did something similar with some improvements.
I also included a test to compare my solution (bilininterp) with cudainterp2 and as you can see here
http://www.mathworks.co.uk/matlabcentral/fileexchange/23795
it is much faster than cudainterp2.

Comments and Ratings on Gerald's Files View all
Updated File Comment by Comments Rating
14 Sep 2014 NVIDIA CUDA-based bilinear (2D) interpolation Incredible speed boost in comparison to the Matlab implementation. (interp2) Author: Gerald Buchgraber Matthias

Could anybody help me to get this to run on a more current version of MATLAB, e.g. 2013b?

I copied the nvmex.pl file as instructed but then get this error (clearly, the "options file" is outdated):

Error: Using options file:
nvmexopts_r2008a.bat
You cannot use this file with the UNKNOWN architecture because it enables a compiler for a different architecture.
Choose a file that is compatible with the UNKNOWN architecture.

22 Aug 2013 NVIDIA CUDA-based bilinear (2D) interpolation Incredible speed boost in comparison to the Matlab implementation. (interp2) Author: Gerald Buchgraber Entchev, Emil

Hi,
When I try to compile the mex file I am getting "\bilininterp_kernel.cu(26): error: taking reference of texture/surface variable not allowed in __device__/__global__ functions".

Any solution?

06 Mar 2012 NVIDIA CUDA-based bilinear (2D) interpolation Incredible speed boost in comparison to the Matlab implementation. (interp2) Author: Gerald Buchgraber kailas

hi how could we calculate exact speed up .... i mean in the comments section it has been given that relative speed up of 5 means approx 1/10 th of performance improvement for GPU....

could some one explain it..

23 Aug 2011 NVIDIA CUDA-based bilinear (2D) interpolation Incredible speed boost in comparison to the Matlab implementation. (interp2) Author: Gerald Buchgraber Wang, Qi

Please correct me if I am wrong.

In "bilininterp_speed_test.m", cudainterp2 and matlab's interp2 generate a output matrix, however bilininterp only interpolate one point in each loop. That is why it gets faster when the matrix getting bigger.

The input to bilininterp should be same like interp2 to have the same output dimension. And if it is done correctly, bilininterp's speedup is ~5 compared to cudainterp2's speedup of ~8 on my GTX460.

20 Jan 2010 NVIDIA CUDA-based bilinear (2D) interpolation Incredible speed boost in comparison to the Matlab implementation. (interp2) Author: Gerald Buchgraber Sven

I tried this on a XP64 machine with Matlab 64. I found one problem: If options are placed into an rsp file by the nvmex_helper script the nvmex compiler cannot parse them. So I added

if (grep /\.rsp$/i, @ARGV) { # arg is a rsp file
my $fn = substr($ARGV[0],1);
my $holdNewline = $/;
undef $/;
my $inf;
open $inf, "<" . $fn;
my $buf = <$inf>;
close $inf;
$/ = $holdNewline;
$_ = $buf;
s/"(.*)\s(.*)"/"\"$1_!_$2\""/eg; # avoid splitting at spaces with quotes,e.g,. "Program Files/"
s/\s+/" "/eg; # collapse multiple spaces
$buf = $_;
@items = split / /, $buf; #split the input string into individual words
grep(s/_!_/" "/eg, @items);
@ARGV = @items;
}

to nvmex.pl to allow that. Now I can pass -win32 as an option, and with some add'l tweaks (using win32 matlab and cuda libs, setting LINKER_OPTIONS to /MACHINE:X86 and esnuring that the 32-bit nvcc is called, I can now compile and run 32-bit mex executables from the 64-bit matlab command line.

Contact us