hybridizer-basic-samples icon indicating copy to clipboard operation
hybridizer-basic-samples copied to clipboard

A problem in hybridizng project

Open N1vS opened this issue 7 years ago • 28 comments

After I try to hybridize my project I try to run it but it shows an error saying: 'Dll load error when loading ConsoleApp2_CUDA.vs2015.dll: 126'. I then try to click on the cpp file and it says the file has been deleted or removed (even when i try after hybridizing). screenshot_2

Could it be a problem in the hybridizing of the project?

im using VS 2017 community with CUDA 9.2.

N1vS avatar Dec 09 '18 21:12 N1vS

Given the name of the generated project, it seems you’re using an old version. Could you try to upgrade to the latest one?

Le 9 déc. 2018 à 22:54, N1vS [email protected] a écrit :

After I try to hybridize my project I try to run it but it shows an error saying: 'Dll load error when loading ConsoleApp2_CUDA.vs2015.dll: 126'. I then try to click on the cpp file and it says the file has been deleted or removed (even when i try after hybridizing).

Could it be a problem in the hybridizing of the project?

im using VS 2017 community with CUDA 9.2.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

JeWaVe avatar Dec 09 '18 22:12 JeWaVe

Which program should I upgrade? also, after hybridization i try to look for a dll or cpp file in the directory and didn't find any.

N1vS avatar Dec 09 '18 22:12 N1vS

You should upgrade hybridizer. From our releases tab in github or from visual studio marketplace.

https://marketplace.visualstudio.com/items?itemName=altimesh.AltimeshHybridizerExtensionEssentials

Le 9 déc. 2018 à 23:11, N1vS [email protected] a écrit :

Which program should I upgrade? also, after hybridization i try to look for a dll or cpp file in the directory and didn't find any.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

JeWaVe avatar Dec 10 '18 07:12 JeWaVe

Even though I had the latest version, I tried reinstalling it and I still get the same error.

N1vS avatar Dec 10 '18 11:12 N1vS

Do you have any code marked as [Kernel] or [EntryPoint]? Do you build the generated native project after having built the managed project? The cpp and the cu files are generated by Hybridizer.

JeWaVe avatar Dec 10 '18 15:12 JeWaVe

I have [EntryPoint] for the simple "hello from gpu" function. I now see that when building the cuda project it fails and saying: "Hybridizer error 0X609E: We cannot find a valid CUDA device on the system, please check your CUDA installation" even though it is installed properly.

N1vS avatar Dec 10 '18 15:12 N1vS

Whoa . Can you run any Cuda sample? Without hybridizer?

Le 10 déc. 2018 à 16:57, N1vS [email protected] a écrit :

I have [EntryPoint] for the simple "hello from gpu" function. I now see that when building the cuda project it fails and saying: "Hybridizer error 0X609E: We cannot find a valid CUDA device on the system, please check your CUDA installation" even though it is installed properly.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

JeWaVe avatar Dec 10 '18 19:12 JeWaVe

Hey, after looking for the problem I found that for some reason the visual studio would automatically try to use my Intel graphic card on the laptop, i changed that to my gtx 1050 and now i managed to make the simple print project with the hybridizer work. but for some reason, now when i try to hybridize my own project it doesn't successfully build displaying these errors.

screenshot_3

i also upgraded the CUDA to v10.0

N1vS avatar Dec 12 '18 18:12 N1vS

Hi.

Can you run the samples? If yes can you send us a reproducer to regis dot portalez at altimesh dot com

Thanks.

Le 12 déc. 2018 à 19:14, N1vS [email protected] a écrit :

Hey, after looking for the problem I found that for some reason the visual studio would automatically try to use my Intel graphic card on the laptop, i changed that to my gtx 1050 and now i managed to make the simple print project with the hybridizer work. but for some reason, now when i try to hybridize my own project it doesn't successfully build displaying these errors.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

JeWaVe avatar Dec 12 '18 18:12 JeWaVe

I tried to contact you through the email, can you tell me how to send you the reproducer?

N1vS avatar Jan 02 '19 07:01 N1vS

Hi.

You can send it via email to regis dot portalez at altimesh dot com or attach it to the current issue

Le 2 janv. 2019 à 08:36, N1vS [email protected] a écrit :

I tried to contact you through the email, can you tell me how to send you the reproducer?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

JeWaVe avatar Jan 02 '19 07:01 JeWaVe

And how do I export it from the visual studio?

N1vS avatar Jan 02 '19 08:01 N1vS

Just zip the directory (without the binaries).

From: N1vS [email protected] Sent: Wednesday, January 2, 2019 9:03 AM To: altimesh/hybridizer-basic-samples [email protected] Cc: Portalez Régis [email protected]; Comment [email protected] Subject: Re: [altimesh/hybridizer-basic-samples] A problem in hybridizng project (#66)

And how do I export it from the visual studio?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/altimesh/hybridizer-basic-samples/issues/66#issuecomment-450804147 , or mute the thread https://github.com/notifications/unsubscribe-auth/AK6Rseyn7xTkM9C8ujujKmKNf4-WMDq7ks5u_GecgaJpZM4ZKV8- .

JeWaVe avatar Jan 02 '19 08:01 JeWaVe

I sent it to you in via email.

N1vS avatar Jan 02 '19 19:01 N1vS

I don't see the email. It may have landed in my spam directory. Could you send it again please?

JeWaVe avatar Jan 11 '19 15:01 JeWaVe

I had the sampe problem. I am using Windows 10, Visual Studio 2019, CUDA 10.1 and Hybridizer 1.3.0 "Released Sep. 5th 2019". Although I have followed all your steps, I keep getting the same error: Dll load error when loading Hello_World_CUDA.dll: 126 even when I try to run any of your examples on GitHub. What should I do now?

AbdelAzizAbdelLatef avatar Sep 16 '19 03:09 AbdelAzizAbdelLatef

Hi @AbdelAzizAbdelLatef

difficult to help you with that few details.

  1. Can you run any native cuda project (new project -> cuda runtime)?
  2. Can you make sure Hello_World_CUDA.dll is indeed in the output directory
  3. Can you run depends on Hello_World_CUDA.dll ? And see what's wrong ?

Here is a basic troubleshooter : https://stackoverflow.com/a/57953249/1669370

JeWaVe avatar Sep 16 '19 07:09 JeWaVe

I tried your solution, but nothing worked. Only a recorded video showing ALL steps from scratch can convince me the Hybridizer actually works.

AbdelAzizAbdelLatef avatar Sep 23 '19 22:09 AbdelAzizAbdelLatef

here you are : https://www.youtube.com/watch?v=ZbA-2XO1JP0

JeWaVe avatar Sep 26 '19 07:09 JeWaVe

@AbdelAzizAbdelLatef , in order to facilitate troubleshooting, could you please provide us the license number you received from our licensing system. There may be an issue in the licensing which would result in the problems you are facing.

fduguet avatar Sep 26 '19 09:09 fduguet

This is what happens when I try yo build the satellite project (CUDA) of any code I make. Mine And this is if I tried your examples. Yours

AbdelAzizAbdelLatef avatar Sep 26 '19 18:09 AbdelAzizAbdelLatef

You shared a subscription number. Did you activate it in visual studio to get a license from the subscription?

Le 26 sept. 2019 à 20:24, AbdelAziz Ibrahem Mohammed AbdelLatef [email protected] a écrit :

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

JeWaVe avatar Sep 27 '19 06:09 JeWaVe

[FATAL] : Internal Error ! may be a license issue. Can you also show us the full build log ? (in Output subwindow)

fduguet avatar Sep 27 '19 11:09 fduguet

Yes, I activated it.

The full log: HYBRIDIZER -- Build status file missing, generating Build satellite full path: C:\Program Files\Altimesh\Hybridizer Essentials\bin\Hybridizer.VSIntegration.BuildSatellite.exe Hybridizer binary full path: C:\Program Files\Altimesh\Hybridizer Essentials\bin\Hybridizer.exe Satellite working directory: D:\Hybridizer\HelloWorld_CUDA\hybridizer-generated-sources Builtins: C:\Program Files\Altimesh\Hybridizer Essentials\include\hybridizer.cuda.builtins Hybridizer out: [INFO] : entering BuildSatellite program Hybridizer out: [INFO] : Loaded assembly from D:\Hybridizer\HelloWorld\bin\x64\Debug\HelloWorld.exe Hybridizer out: [INFO] : Done searching assembly for hybridizer directives Hybridizer out: Hybridizer full path: C:\Program Files\Altimesh\Hybridizer Essentials\bin\Hybridizer.exe Hybridizer out: [DONE] C:\Program Files\Altimesh\Hybridizer Essentials\vsintegration\Hybridizer.targets(80,13): error : [FATAL] : Internal Error !

AbdelAzizAbdelLatef avatar Sep 27 '19 20:09 AbdelAzizAbdelLatef

@AbdelAzizAbdelLatef, It seems there has been a problem in your license activation. Could you please send by email at contact(at)altimesh.com the values of registry key entry HKEY_CURRENT_USER\Software\ALTIMESH\Hybridizer ? We will support you from email.

fduguet avatar Oct 01 '19 07:10 fduguet

And please attach the zip of the project.

Le 1 oct. 2019 à 08:56, Florent DUGUET [email protected] a écrit :

@AbdelAzizAbdelLatef, It seems there has been a problem in your license activation. Could you please send by email at contact(at)altimesh.com the values of registry key entry HKEY_CURRENT_USER\Software\ALTIMESH\Hybridizer ? We will support you from email.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

JeWaVe avatar Oct 01 '19 07:10 JeWaVe

Both done.

AbdelAzizAbdelLatef avatar Oct 01 '19 20:10 AbdelAzizAbdelLatef

A license problem? Seriously? That can't be true, can it?

Is there anyone here who was able to solve the problem 'Dll load error when loading ConsoleApp2_CUDA.vs2015.dll: 126' only by changing or upgrading their license?

What kind of failed spagetticode blows half the application to Kingdom come because of a licensing error? I don't think I want to let this thing mess up my graphics driver xD

Well, I'll keep searching for a while. And get an education license.

Damn, this could be such an awesome application. If I find a solution, I'll post it here :)

Jupiter-OM avatar Mar 07 '24 16:03 Jupiter-OM