Jump to content

AMD have released a tool which converts Nvidia's CUDA code to portable C++ code which works on both Nvidia and AMD cards!

goodtofufriday

Source: https://www.reddit.com/r/Amd/comments/5i9cm4/amd_have_released_a_tool_which_converts_nvidias/

 

Source2: https://github.com/GPUOpen-ProfessionalCompute-Tools/HIP

Source3: https://www.reddit.com/r/programming/comments/5i5k0s/amd_creates_a_tool_to_convert_cuda_code_to/

Quote

What is this repository for? 

HIP allows developers to convert CUDA code to portable C++. The same source code can be compiled to run on NVIDIA or AMD GPUs. Key features include: 

HIP is very thin and has little or no performance impact over coding directly in CUDA or hcc "HC" mode. 

HIP allows coding in a single-source C++ programming language including features such as templates, C++11 lambdas, classes, namespaces, and more. 

HIP allows developers to use the "best" development environment and tools on each target platform. 

The "hipify" tool automatically converts source from CUDA to HIP. 

Developers can specialize for the platform (CUDA or hcc) to tune for performance or handle tricky cases 

New projects can be developed directly in the portable HIP C++ language and can run on either NVIDIA or AMD platforms. Additionally, HIP provides porting tools which make it easy to port existing CUDA codes to the HIP layer, with no loss of performance as compared to the original CUDA application. HIP is not intended to be a drop-in replacement for CUDA, and developers should expect to do some manual coding and performance tuning work to complete the port. 

 

Great, great news to me. Although I'm not gonna lie and say I see this being useful to consumers I do think that in enterprise applications it will help AMD even more. Heck maybe it can be used to get passed Gimpworks. 

 

CPU: Amd 7800X3D | GPU: AMD 7900XTX

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, AlwaysFSX said:

Isn't that illegal without AMD having a license?

There's always a way...

Computers r fun

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, AlwaysFSX said:

Isn't that illegal without AMD having a license?

AMD's reaction:   ¯\_(ツ)_/¯

 

i dont think it is for their own purposes. To have released it though, maybe.

CPU: Amd 7800X3D | GPU: AMD 7900XTX

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, TheNuzziNuzz said:

There's always a way...

Yeah except for the part where Nvidia sues AMD and suddenly you have an actual monopoly. You don't get to do illegal things and get away with it.

 

Which is also why I asked a question of legality from hopefully someone that actually knows. Not a keyboard warrior.

.

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, goodtofufriday said:

AMD's reaction:   ¯\_(ツ)_/¯

 

i dont think it is for their own purposes. To have released it though, maybe.

Yeah it's the releasing it part that's sketchy.

.

Link to comment
Share on other sites

Link to post
Share on other sites

Heyo, just wanted to let you know that your quote box isn't properly formatted.

Here's a revision if you want.



What is this repository for?

HIP allows developers to convert CUDA code to portable C++. The same source code can be compiled to run on NVIDIA or AMD GPUs. Key features include:

HIP is very thin and has little or no performance impact over coding directly in CUDA or hcc "HC" mode.

HIP allows coding in a single-source C++ programming language including features such as templates, C++11 lambdas, classes, namespaces, and more.

HIP allows developers to use the "best" development environment and tools on each target platform.

The "hipify" tool automatically converts source from CUDA to HIP.

Developers can specialize for the platform (CUDA or hcc) to tune for performance or handle tricky cases

New projects can be developed directly in the portable HIP C++ language and can run on either NVIDIA or AMD platforms. Additionally, HIP provides porting tools which make it easy to port existing CUDA codes to the HIP layer, with no loss of performance as compared to the original CUDA application. HIP is not intended to be a drop-in replacement for CUDA, and developers should expect to do some manual coding and performance tuning work to complete the port.

Check out my guide on how to scan cover art here!

Local asshole and 6th generation console enthusiast.

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, AlwaysFSX said:

Isn't that illegal without AMD having a license?

I think its legal,because it is not compiling the source code to work with AMD cards but translating it to another language to then be compiled to work on other hardware. 

if you want to annoy me, then join my teamspeak server ts.benja.cc

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, Dan Castellaneta said:

Heyo, just wanted to let you know that your quote box isn't properly formatted.

Here's a revision if you want.

 

 

Appreciated

CPU: Amd 7800X3D | GPU: AMD 7900XTX

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, The Benjamins said:

I think its legal,because it is not compiling the source code to work with AMD cards but translating it to another language to then be compiled to work on other hardware. 

Thought I read somewhere in the documentation for CUDA that you're not allowed to translate it to a different programming language unless you have a license for CUDA, which AMD does not have.

.

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, AlwaysFSX said:

Thought I read somewhere in the documentation for CUDA that you're not allowed to translate it to a different programming language unless you have a license for CUDA, which AMD does not have.

Well, it's a tool so AMD is not doing the translation themselves. Yeah, they probably tested the translation tool themselves, but as long as they don't release any of the translation results it should be fine I would think.

Link to comment
Share on other sites

Link to post
Share on other sites

This is fully legal because AMD obtained a license quite a while ago. I think this is the first thing they've done with it.

 

Click! just over a year ago :). Or was that wrong and not an actual license?

 

 

I have no signature

Link to comment
Share on other sites

Link to post
Share on other sites

14 minutes ago, AlwaysFSX said:

Yeah except for the part where Nvidia sues AMD and suddenly you have an actual monopoly. You don't get to do illegal things and get away with it.

 

Which is also why I asked a question of legality from hopefully someone that actually knows. Not a keyboard warrior.

They would force NVIDIA to split into two companies which would probably hurt them a lot more. At least in the UK that would happen because of Competition laws.

I had an account called Joegeddon active since April 20th 2015

Desktop

AMD Ryzen 5 2600 | XFX RADEON RX580 8GB XXX | 16GB 3000MHz DDR4 | Thermaltake Versa H22 | Corsair RM550x PSU | MSI AM4 B450M-A PRO Motherboard

1TB 7200RPM HDD | 500GB 7200RPM HDD | 500GB M.2 WD BLUE SSD

 

Laptop - Asus UX303UA

Intel i7 6500U | Intel 530 Graphics | 12GB 1600MHz DDR3 | 256GB SATA 3 SSD

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Helly said:

This is fully legal because AMD obtained a license quite a while ago. I think this is the first thing they've done with it.

 

Click! just over a year ago :). Or was that wrong and not an actual license?

I did not know this. :o

1 minute ago, huilun02 said:

No. This does not give any AMD product the ability to use CUDA. Instead, AMD is offering this compiler tool that allows software developers to easily port stuff made for CUDA, into an alternative form that AMD can also use. Its not CUDA and no license is required.

 

Its still up to the software developers if they want to do this or not. There is little reason not to, as it means a larger user base for their software.

Of course unless Nvidia offers some 'incentive' that will outweigh the additional profit from Radeon users.

 

It will be interesting to see Apple's opinion on this as their products use Radeon graphics.

¯\_(ツ)_/¯

.

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Joe_MacDougall said:

They would force NVIDIA to split into two companies which would probably hurt them a lot more. At least in the UK that would happen because of Competition laws.

It's an American company so they wouldn't be split up because of UK law.

.

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, AlwaysFSX said:

It's an American company so they wouldn't be split up because of UK law.

I know but what I'm saying is that the US might have similar competition laws?

I had an account called Joegeddon active since April 20th 2015

Desktop

AMD Ryzen 5 2600 | XFX RADEON RX580 8GB XXX | 16GB 3000MHz DDR4 | Thermaltake Versa H22 | Corsair RM550x PSU | MSI AM4 B450M-A PRO Motherboard

1TB 7200RPM HDD | 500GB 7200RPM HDD | 500GB M.2 WD BLUE SSD

 

Laptop - Asus UX303UA

Intel i7 6500U | Intel 530 Graphics | 12GB 1600MHz DDR3 | 256GB SATA 3 SSD

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, AlwaysFSX said:

Thought I read somewhere in the documentation for CUDA that you're not allowed to translate it to a different programming language unless you have a license for CUDA, which AMD does not have.

Technically I would think just the CUDA core processors are proprietary to nvidia, and that offering developers a way to translate CUDA code into C++ is much more of a grey area. Then again tbh i have no idea what terms nvidia imposes on developers.

Desktop:     Core i7-9700K @ 5.1GHz all-core = ASRock Z390 Taichi Ultimate = 16GB HyperX Predator DDR4 @ 3600MHz = Asus ROG Strix 3060ti (non LHR) = Samsung 970 EVO 500GB M.2 SSD = ASUS PG279Q

 

Notebook:  Clevo P651RG-G = Core i7 6820HK = 16GB HyperX Impact DDR4 2133MHz = GTX 980M = 1080p IPS G-Sync = Samsung SM951 256GB M.2 SSD + Samsung 850 Pro 256GB SSD

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Joe_MacDougall said:

I know but what I'm saying is that the US might have similar competition laws?

No, if a company fairly and legally becomes the only one in the market they're free to do as they wish within reason and will not be broken up.

 

Edit: typo, been up a while

.

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, AlwaysFSX said:

No, if a company fairly and legally becomes the only one in the market they're free to do as they wish without reason and will not be broken up.

I guess. It happened in the UK with a bank a while ago but I don't know the details about it.

I had an account called Joegeddon active since April 20th 2015

Desktop

AMD Ryzen 5 2600 | XFX RADEON RX580 8GB XXX | 16GB 3000MHz DDR4 | Thermaltake Versa H22 | Corsair RM550x PSU | MSI AM4 B450M-A PRO Motherboard

1TB 7200RPM HDD | 500GB 7200RPM HDD | 500GB M.2 WD BLUE SSD

 

Laptop - Asus UX303UA

Intel i7 6500U | Intel 530 Graphics | 12GB 1600MHz DDR3 | 256GB SATA 3 SSD

Link to comment
Share on other sites

Link to post
Share on other sites

7 minutes ago, AlwaysFSX said:

Thought I read somewhere in the documentation for CUDA that you're not allowed to translate it to a different programming language unless you have a license for CUDA, which AMD does not have.

That would not make sense, since your code is yours. Remember, this isn't translating anything Nvidia has created into something else. It only translates code you write in CUDA language into something else. It is impossible for it to be illegal. It would mean that if you had an idea for a program ans write it in C, then you can write a CUDA version, but if you write the CUDA version first, then it is illegal to write a C version of your own program. Even if Nvidia would include such thing somewhere in its license agreements, it would be void.

There are no legal issues with translating code form one syntax to another.

Link to comment
Share on other sites

Link to post
Share on other sites

10 minutes ago, AlwaysFSX said:

Thought I read somewhere in the documentation for CUDA that you're not allowed to translate it to a different programming language unless you have a license for CUDA, which AMD does not have.

Uhhhh, yes they do.

CPU i7 6700 Cooling Cryorig H7 Motherboard MSI H110i Pro AC RAM Kingston HyperX Fury 16GB DDR4 2133 GPU Pulse RX 5700 XT Case Fractal Design Define Mini C Storage Trascend SSD370S 256GB + WD Black 320GB + Sandisk Ultra II 480GB + WD Blue 1TB PSU EVGA GS 550 Display Nixeus Vue24B FreeSync 144 Hz Monitor (VESA mounted) Keyboard Aorus K3 Mechanical Keyboard Mouse Logitech G402 OS Windows 10 Home 64 bit

Link to comment
Share on other sites

Link to post
Share on other sites

Ayyy looks like AMD finally released it!

 

Kul. Maybe it will give people more incentive to buy AMD cards since if they're using nvidia right now the code can be easily ported over.

Make sure to quote me or tag me when responding to me, or I might not know you replied! Examples:

 

Do this:

Quote

And make sure you do it by hitting the quote button at the bottom left of my post, and not the one inside the editor!

Or this:

@DocSwag

 

Buy whatever product is best for you, not what product is "best" for the market.

 

Interested in computer architecture? Still in middle or high school? P.M. me!

 

I love computer hardware and feel free to ask me anything about that (or phones). I especially like SSDs. But please do not ask me anything about Networking, programming, command line stuff, or any relatively hard software stuff. I know next to nothing about that.

 

Compooters:

Spoiler

Desktop:

Spoiler

CPU: i7 6700k, CPU Cooler: be quiet! Dark Rock Pro 3, Motherboard: MSI Z170a KRAIT GAMING, RAM: G.Skill Ripjaws 4 Series 4x4gb DDR4-2666 MHz, Storage: SanDisk SSD Plus 240gb + OCZ Vertex 180 480 GB + Western Digital Caviar Blue 1 TB 7200 RPM, Video Card: EVGA GTX 970 SSC, Case: Fractal Design Define S, Power Supply: Seasonic Focus+ Gold 650w Yay, Keyboard: Logitech G710+, Mouse: Logitech G502 Proteus Spectrum, Headphones: B&O H9i, Monitor: LG 29um67 (2560x1080 75hz freesync)

Home Server:

Spoiler

CPU: Pentium G4400, CPU Cooler: Stock, Motherboard: MSI h110l Pro Mini AC, RAM: Hyper X Fury DDR4 1x8gb 2133 MHz, Storage: PNY CS1311 120gb SSD + two Segate 4tb HDDs in RAID 1, Video Card: Does Intel Integrated Graphics count?, Case: Fractal Design Node 304, Power Supply: Seasonic 360w 80+ Gold, Keyboard+Mouse+Monitor: Does it matter?

Laptop (I use it for school):

Spoiler

Surface book 2 13" with an i7 8650u, 8gb RAM, 256 GB storage, and a GTX 1050

And if you're curious (or a stalker) I have a Just Black Pixel 2 XL 64gb

 

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Joe_MacDougall said:

I guess. It happened in the UK with a bank a while ago but I don't know the details about it.

If a company is large enough and is found to be unfair the government will break them up into smaller companies. Look up AT&T in the 90s as a more recent example

CPU: Amd 7800X3D | GPU: AMD 7900XTX

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, huilun02 said:

Seriously you think such laws actually work?

The US has antitrust laws. Look how effective they are.

Good point.

I had an account called Joegeddon active since April 20th 2015

Desktop

AMD Ryzen 5 2600 | XFX RADEON RX580 8GB XXX | 16GB 3000MHz DDR4 | Thermaltake Versa H22 | Corsair RM550x PSU | MSI AM4 B450M-A PRO Motherboard

1TB 7200RPM HDD | 500GB 7200RPM HDD | 500GB M.2 WD BLUE SSD

 

Laptop - Asus UX303UA

Intel i7 6500U | Intel 530 Graphics | 12GB 1600MHz DDR3 | 256GB SATA 3 SSD

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×