GithubHelp home page GithubHelp logo

inducer / codepy Goto Github PK

View Code? Open in Web Editor NEW
50.0 50.0 25.0 269 KB

Generate and execute native code at run time, from Python

Home Page: http://mathema.tician.de/software/codepy

License: MIT License

Python 98.43% C++ 1.57%

codepy's People

Contributors

alexfikl avatar bryancatanzaro avatar fabioluporini avatar inducer avatar jan-janssen avatar kaushikcfd avatar kynan avatar mattwala avatar reguly avatar serge-sans-paille avatar skyreflectedinmirrors 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

Watchers

 avatar  avatar  avatar  avatar

codepy's Issues

Version

Hello

Would it be possible to burn a new version as the latest commit (sleep_delay) is not picked up by setup.py like an installation that depends on codepy.

Thank

question about demo

I'm really interesting about codepy an pycuda, but i got some bug when i run python demo.py.

/home/a01/anaconda3/envs/pycuda/compiler_compat/ld: cannot find -lboost_python-py38
/home/a01/anaconda3/envs/pycuda/compiler_compat/ld: cannot find -lpython3.8m
collect2: error: ld returned 1 exit status

i have google about how to fix it but it doesn't work , and it same when i try pycuda/from-wiki python thrust_interop.py.

my computer enviroment:
ubuntu1804
conda virtual python:3.8
pycuda and codepy have been successfully installed

question about relaxing locking

Hi,

So I'm a user of a package which depends on codepy (devitoproject.org). Since the compilations it generates can be quite slow (several minutes each), parallelism is obviously desirable if possible. The current locking system in codepy precludes this, if we want to also make use of the cache (which we do - because several minutes per compilation!).

Just so I don't start down a completely unwelcome path - can you please advise if a patch which changes the locking to be one-lockfile-per-hash (rather than a single lock on the whole cache directory) would be welcome?

Thanks!

codepy NOT working with gcc 11.2.0

Hi there,

I'm struggling to make codepy to work with the following gcc version:

gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Now, I really need it because it is required by a tool that performs scaffolding and leverages both GPU acceleration and PyCUDA. If it is helpful I cna report the error; however, based on what the developer for the tool said codepy for working need gcc vesion not greater than 8.x.x.

On the other hand, I really do not want to remove my gcc version since this might cause issues with XOrg driver (which I experienced before and are rather unpleasant to deal with). I also tried to install gcc 8.5.0 from shell, but unsuccessfully; later, I resorted to install it from the .bin file but even so, there is no way for me to use it in combination with the tool I need.

Thus, I was wondering is there any chance I can make it work with gcc 11.2.0

Dynamic compilation and linking on Windows

Moving discussion of inducer/pycuda#25 over here, where it should have been in the first place.

The docs righly state that dynamic compilation and linking is now working on Windows. Is there any plans to remedy this situation?

I have had a small peek on how the toolchains are being set up in CodePy, and I guess it should be possible to add MSVC to it as well. Continuing on this path, will one not potentially end up with having duplicated a cross-platform build system in Python. Would it not be better to utilize Bjam? It should be available on any system using Boost anyway to abstract away the platform independent anyways?

(On CUDA systems nvcc also does the build platform abstraction, so adding a third one
seems a bit excessive, CMake is of course another alternative to cross platform building, which also can call NVCC.)

Or is this new modePy-stuff going to replace CodePy

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.