optkit's People
optkit's Issues
CUDA Errors running simple test
SYSTEM:
3.19.0-51-generic #58~14.04.1-Ubuntu SMP Fri Feb 26 22:02:58 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Python 2.7 (virtualenv)
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17
BRANCH/TAG:
v0.0.2
CODE:
import optkit
optkit.set_backend(GPU=True,double=False)
A = np.random.rand(2000,1000)
solver = optkit.api.PogsSolver(A)
m,n = A.shape
f = optkit.api.FunctionVector(m,h="Square",b=1) # h="Abs" <- baris
g = optkit.api.FunctionVector(n,h="IndGe0")
solver.solve(f,g)
ERRORS:
src/optkit_prox.cu:100:function_vector_alloc
ERROR_CUDA: invalid device function
src/optkit_dense.cu:83:vector_alloc
ERROR_CUDA: invalid device function
src/optkit_dense.cu:83:vector_alloc
ERROR_CUDA: invalid device function
src/optkit_dense.cu:83:vector_alloc
ERROR_CUDA: invalid device function
src/optkit_dense.cu:83:vector_alloc
ERROR_CUDA: invalid device function
src/optkit_dense.cu:83:vector_alloc
ERROR_CUDA: invalid device function
src/optkit_dense.cu:83:vector_alloc
ERROR_CUDA: invalid device function
src/optkit_dense.cu:330:matrix_alloc
ERROR_CUDA: invalid device function
src/optkit_dense.cu:83:vector_alloc
ERROR_CUDA: invalid device function
src/optkit_dense.cu:485:matrix_memcpy_ma
ERROR_CUDA: invalid device function
terminate called after throwing an instance of 'thrust::system::system_error'
what(): function_attributes(): after cudaFuncGetAttributes: invalid device function
setup script not installing the pogs library itself
Thanks for directing me from pogs-python to here.
Using python setup.py install
in optkit\python
, and in python, using the command, import optkit
I get the following error. Looking through the directories, seems like these library files were not installed anywhere and hence cannot be accessed.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/anaconda3/envs/pymvpa/lib/python2.7/site-packages/optkit/__init__.py", line 4, in <module>
from optkit.api import OPTKIT_VERSION
File "/home/ubuntu/anaconda3/envs/pymvpa/lib/python2.7/site-packages/optkit/api.py", line 13, in <module>
backend = OKBackend()
File "/home/ubuntu/anaconda3/envs/pymvpa/lib/python2.7/site-packages/optkit/backends.py", line 28, in __init__
self.pogs_lib_loader = PogsLibs()
File "/home/ubuntu/anaconda3/envs/pymvpa/lib/python2.7/site-packages/optkit/libs/pogs.py", line 19, in __init__
OptkitLibs.__init__(self, 'libpogs_dense_')
File "/home/ubuntu/anaconda3/envs/pymvpa/lib/python2.7/site-packages/optkit/libs/loader.py", line 40, in __init__
search_results))
ValueError: No backend libraries were located:
library libpogs_dense_gpu32.so not found at /home/ubuntu/anaconda3/envs/pymvpa/lib/python2.7/build/libpogs_dense_gpu32.so.
library libpogs_dense_gpu64.so not found at /home/ubuntu/anaconda3/envs/pymvpa/lib/python2.7/build/libpogs_dense_gpu64.so.
library libpogs_dense_cpu32.so not found at /home/ubuntu/anaconda3/envs/pymvpa/lib/python2.7/build/libpogs_dense_cpu32.so.
library libpogs_dense_cpu64.so not found at /home/ubuntu/anaconda3/envs/pymvpa/lib/python2.7/build/libpogs_dense_cpu64.so.
issues with arguments fed to solver
Hi,
This looks like a really cool library ! I've been trying to get it up and running but have been having this error when arguments are fed to the solver:
TypeError: long() argument must be a string or a number, not 'ok_function'
I tried with my own examples and also ran some of the test cases e.g. radiation.py. Any advice as to what I'm doing wrong would be greatly appreciated!
I've been using the dev branch as had issues with the master branch as described previously.
Thanks a lot !
The full error for radiation.py below
/removed path----/opt/anaconda3/envs/py27/bin/python removed path----/Documents/GitHub/optkit/examples/pogs_radiation.py
optkit backend set to cpu64
Traceback (most recent call last):
File "/removed path----/GitHub/optkit/examples/pogs_radiation.py", line 94, in
solver.solve(objective_voxels, objective_beams)
File "/removed path----/opt/anaconda3/envs/py27/lib/python2.7/site-packages/optkit/types/pogs/base.py", line 552, in solve
self._update_function_vectors(f, g)
File "/removed path----/opt/anaconda3/envs/py27/lib/python2.7/site-packages/optkit/types/pogs/base.py", line 527, in _update_function_vectors
f.s[i])
TypeError: long() argument must be a string or a number, not 'ok_function'
Process finished with exit code 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.