Code Monkey home page Code Monkey logo

Comments (15)

m4rs-mt avatar m4rs-mt commented on May 18, 2024 1

@scherenhaenden It looks like you are trying to use version 0.3 (which has native dependencies). This version is based on LLVM and only supports Windows and Ubuntu 14.04. Try v0.4-beta or the upcoming v0.5-beta which provides cross-platform support.

from ilgpu.

m4rs-mt avatar m4rs-mt commented on May 18, 2024

The reason ILGPU does not support .NET Standard 2.0 is because ILGPU relies on the System.Reflection.Emit.ILGeneration package, which is currently not (correctly) supported on all .NET Standard compatible platforms. For more information, visit https://github.com/dotnet/corefx/issues/29365 and https://github.com/dotnet/corefx/issues/30654

There are basically two possibilities:

  1. Create an ILGPU package that pretends to be .NET Standard 2.0 compatible, but one of its dependencies is not.
  2. Wait until the dependency is fully compatible before claiming full compatibility with the .NET standard.

from ilgpu.

kant2002 avatar kant2002 commented on May 18, 2024

I want to ask one more question. I just do not aware about ability to target netcoreapp2.0 libraries from netcoreapp2.1. If this is possible, I personally would not be affected in any way, if not, then I would ask for targeting of multiple frameworks. Even if it is targeted, maybe it would be practical to include into samples, that this library could be used from netcoreap2.1 project.

from ilgpu.

m4rs-mt avatar m4rs-mt commented on May 18, 2024

I don't see any problems using .netcoreapp2.0 libs from netcoreapp2.1 apps or libraries. This should work without any further problems (in theory).

from ilgpu.

scherenhaenden avatar scherenhaenden commented on May 18, 2024

Hello.
I got almost the same issue but the other way around. I get from nuget only the .netstandard version, not the .netframework version

from ilgpu.

kant2002 avatar kant2002 commented on May 18, 2024

@scherenhaenden 0.3.0 version was netstandard2.0 which allow it to run under net47
0.4.0-beta would be netcoreapp2.0 (which is different from netstandard) and that make it run only on netcoreapp2.0, netcoreapp2.1 and netcoreapp3.0 (when it will be published). So your application should target at least netcoreapp2.0 now.

Given the MS stance on full .NET, it is reasonable to move all applications on .NET Core instead of creating them on .NET framework.

from ilgpu.

samy2 avatar samy2 commented on May 18, 2024

@scherenhaenden , @kant2002
Well, from what I tested : the .netstandard nuget package of ILGPU 0.3.0 is usable from a net47 application. The nuget package of ILGPU 0.4.0-beta includes two builds : netcoreapp2.0 and net47. It is usable from a net47 application too.

from ilgpu.

kant2002 avatar kant2002 commented on May 18, 2024

Thanks for correcting me @samy2 the netcoreapp2.0 and net47 both supported. I'm more concentrated on .NET core workloads so do not care about net47 monikers, so I miss that. Dropping .NET framework is off-topic from my side, so @scherenhaenden sorry for potential confusion.

from ilgpu.

scherenhaenden avatar scherenhaenden commented on May 18, 2024

Hi,
thanks for your fast answer. It appears to be impossible to us it on Linux. At least, I get this error with the Assembly LLVM that appearst o be a badimage. I just discover this project today. I'll be trying to solve that issue when I get more time btu for now, I cannot use it.

Anyhow i made it work on dotnetcore (that the DLLs won't yell). Maybe tomorrow I'll see the other thing with bad assembly image.

from ilgpu.

scherenhaenden avatar scherenhaenden commented on May 18, 2024

@m4rs-mt thanks a lot for that Info. I'll be trying the next days

from ilgpu.

scherenhaenden avatar scherenhaenden commented on May 18, 2024

@m4rs-mt
Hi!

I cloned your project, very nice of you doing all of this alone. I just wanted to mention that i cannot build it on Linux because it can be only built over VS.

I don't know if you need some kind of feedback on this. Just let me know and I would try to help you.

from ilgpu.

m4rs-mt avatar m4rs-mt commented on May 18, 2024

@scherenhaenden Have you tried using the dotnet build command to build the project for .Net Core under Linux? Alternatively, you can use the nuget package v0.4-beta which contains a ready-to-use .Net Core build.

from ilgpu.

scherenhaenden avatar scherenhaenden commented on May 18, 2024

Thanks a lot... I had been looking for v0.4... and got 404...

I'll be trying to get some time free this week to try that ;)

from ilgpu.

m4rs-mt avatar m4rs-mt commented on May 18, 2024

The mentioned issues were closed and already updated versions with .Net Standard 2.0 support are available as beta. As soon as the packages are stable I will add the .Net Standard 2.0 support as well.

from ilgpu.

m4rs-mt avatar m4rs-mt commented on May 18, 2024

.Net Standard 2.1 support is now available. Special thanks to @MoFtZ 👍
I will close this issue now, as the next release will provide the desired .Net Standard support.

from ilgpu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.