GithubHelp home page GithubHelp logo

kaby76 / campy Goto Github PK

View Code? Open in Web Editor NEW
100.0 100.0 13.0 15.05 MB

A compiler for NET CIL for GP-GPU computing in .NET languages.

Home Page: http://www.campynet.com

License: MIT License

C# 65.29% Batchfile 0.01% C 30.85% C++ 3.51% Makefile 0.04% Shell 0.14% PigLatin 0.17%

campy's Introduction

Ken Domino - kaby76

Codinggorilla -- down for rebuilding

Current Work

Connect with me:

KenDomino | Twitter kenneth-e-domino | LinkedIn




Machine Instruction Sets

CIL PTX JVM 390 68k x86 Vax z80 6502 PDP8




Languages

Kotlin C# Java C++ Perl Pascal C Lisp BCPL Algol W Fortran APL




Tools

Antlr Bash Bison Blender dotCover dotMemory dotPeek Git GitHub Google Play Inkscape NET Core Resharper VirtualBox Xamarin




Editors

Android Studio Eclipse Emacs Intellij-Idea NetBeans PhpStorm PyCharm Rider Vim Visual Studio Code Visual Studio IDE Webstorm




Operating Systems

Android Ubuntu Windows 10




Online Presence

Gitter Reddit Stack Overflow





⚡ Github Stats kaby76's Github Stats

campy's People

Contributors

kaby76 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

campy's Issues

Getting Started - NuGet versions / DllLoadException

Your project looks cool, but we're struggling to get things running.

For the Visual Studio project we get errors finding the swigged.llvm package version 70.0.0 (which one of your comments indicated have not been published yet).

For the command line / bash instructions we compile successfully, but then get an error:

  • "DllLoadException - Unable to load DLL campy-runtime-wrapper", even though the .dll is present in the 'publish' directory.

We're running VS 2017 under Windows 10.

Can you give any advise on how we might try to get a running version?
Do we also have to compile and package swigged.llvm and publish to a local dir, or can you suggest a simpler route?

Math.Log(10) failed

I'm trying to Math.Log(10), but failed.
System.Exception: 'Cannot find System.Double System.Math::Log(System.Double)

Hello world not working

When run code from readme i see error

System.DllNotFoundException: Unable to load DLL 'campy-runtime-wrapper' or one of its dependencies: Не найден указанный модуль. (Exception from HRESULT: 0x8007007E)
   at Campy.Meta.RUNTIME.InitTheBcl(IntPtr a1, Int64 a2, Int64 a3, Int32 a4)
   at Campy.Compiler.COMPILER.InitBCL() in C:\Users\Kenne\Documents\Campy2\Campy.Compiler\compiler.cs:line 1680
   at Campy.Compiler.COMPILER..ctor() in C:\Users\Kenne\Documents\Campy2\Campy.Compiler\compiler.cs:line 1181
   at Campy.Compiler.COMPILER.get_Singleton() in C:\Users\Kenne\Documents\Campy2\Campy.Compiler\compiler.cs:line 1071
   at Campy.Parallel..ctor() in C:\Users\Kenne\Documents\Campy2\Campy\Parallel.cs:line 20
   at Campy.Parallel.get_Singleton() in C:\Users\Kenne\Documents\Campy2\Campy\Parallel.cs:line 30
   at Campy.Parallel.<>c__DisplayClass12_1.<For>b__0() in C:\Users\Kenne\Documents\Campy2\Campy\Parallel.cs:line 109
   at Campy.Utils.TimePhase.Time(String phase_name, Action action) in C:\Users\Kenne\Documents\Campy2\Campy.Utils\TimePhase.cs:line 16
   at Campy.Parallel.For(Int32 number_of_threads, SimpleKernel simpleKernel) in C:\Users\Kenne\Documents\Campy2\Campy\Parallel.cs:line 107
 int n = 4;
            int[] x = new int[n];
            Campy.Parallel.For(n, i => x[i] = i);
            for (int i = 0; i < n; ++i)
                System.Console.WriteLine(x[i]);

            Console.WriteLine("Hello World!");

CUDA error: invalid argument

            int n = 10;
            var rand = new Random();
            double[] x = new double[n];
            double[] y = new double[n];
            for (int i = 0; i < n; i++)
            {
                x[i] = rand.NextDouble();
            }

            Campy.Parallel.For(n, i => y[i] = 1 / (1 + Math.Pow(Math.E, -x[i])));

image

It works in console, but failed in UnitTest project.

DNA improvements

Hello fellow DNA enthusiast!

This is not really an issue, more of a question.

As a maintainer of another DNA clone, it would be very interesting to understand better the extent of your changes on top of the original DNA (a Blazor fork as baseline, I assume), for example what did you fix for 64-bit support, or anything else from the top of your head that you wish to share.

Just skimming through the code, I see these changes:

  • added function_space_specifier to functions
  • replaced allocation functions
  • replaced string functions
  • replaced the JIT and the JIT runner with Mono.Cecil (but why).

I'm sure this only touches the surface, perhaps I'm missing some of the changes.

Looks like an awesome project, the GPU target looks very interesting.

Thank you, I appreciate your help and time.

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.