Go Back   Scooter Forums > Beyond Compare 3 Discussion > Text Compare (2-way)
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 18-Apr-2012, 10:45 AM
Chris Chris is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 3,899
Default Comparing Nvidia CUDA .cubin files as assembly

Here's how to decompile Nvidia CUDA .cubin files into assembly and compare them in Beyond Compare 3's Text Compare.

Download and install the Nvidia Cuda Toolkit 4.1.

Create the batch file:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1\bin\cuobjdump2file.bat

Contents of the file:
"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1\bin\cuobjdump.exe" --dump-sass %1 > %2

In Beyond Compare, select "Tools > File Formats".
Click "New".
Select "Text Format" as the type.
Name the format Nvidia Cubin.
Enter *.cubin as the mask.
Go to the Conversion tab.
Change conversion from "None" to "External program (Unicode filenames)".
In "Loading", enter:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1\bin\cuobjdump2file.bat %s %t
Save the format.

Opening .cubin files in Beyond Compare will display them decompiled into assembly code in the Text Compare.
__________________
Chris K Scooter Software
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 12:57 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.