Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cocl_py cuda_sample.cu dont work #100

Open
vidalperezbohoyo opened this issue Aug 28, 2021 · 3 comments
Open

cocl_py cuda_sample.cu dont work #100

vidalperezbohoyo opened this issue Aug 28, 2021 · 3 comments

Comments

@vidalperezbohoyo
Copy link

this:
cocl_py cuda_sample.cu

makes this:
/home/vidi/coriander/bin/cocl.py cuda_sample.cu
adding corianderclblast to includes
adding corianderdnn to includes
INCLUDES ['-I/home/vidi/coriander/include/coriander_plugins/corianderclblast', '-I/home/vidi/coriander/include/coriander_plugins/corianderdnn']
adding libcorianderclblast.so to libs
adding libclblast.so to libs
adding libcorianderdnn.so to libs
LIBS ['-L/home/vidi/coriander/lib/coriander_plugins', '-lcorianderclblast', '-lclblast', '-lcorianderdnn']
/home/vidi/coriander/soft/llvm-8.0.0/bin/clang++ -DUSE_CLEW -std=c++11 -x cuda -D__CORIANDERCC__ -D__CUDACC__ --cuda-gpu-arch=sm_30 -nocudalib -nocudainc --cuda-device-only -emit-llvm -O2 -S -Wno-gnu-anonymous-struct -Wno-nested-anon-types -I/home/vidi/coriander/soft/llvm-8.0.0/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/vidi/coriander/soft/llvm-8.0.0/include -std=c++11 -fexceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/vidi/coriander/include/cocl -include /home/vidi/coriander/include/cocl/cocl.h -include /home/vidi/coriander/include/cocl/fake_funcs.h -include /home/vidi/coriander/include/cocl/cocl_deviceside.h -I/home/vidi/coriander/include -I/home/vidi/coriander/include/coriander_plugins/corianderclblast -I/home/vidi/coriander/include/coriander_plugins/corianderdnn cuda_sample.cu -o cuda_sample-device-noopt.ll
In file included from :1:
In file included from /home/vidi/coriander/include/cocl/cocl.h:10:
In file included from /usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/stdexcept:38:
In file included from /usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/exception:143:
In file included from /usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/exception_ptr.h:40:
/home/vidi/coriander/soft/llvm-8.0.0/lib/clang/8.0.0/include/cuda_wrappers/new:41:12: error: no member named
'malloc' in the global namespace
return ::malloc(size);
~~^
/home/vidi/coriander/soft/llvm-8.0.0/lib/clang/8.0.0/include/cuda_wrappers/new:58:7: error: no type named
'free' in the global namespace
::free(ptr);
~~^

I dont know how to fix that. Im noob. Please be good with me ejjejej

@Gitkingly
Copy link

I had the same issue, does anyone has a solution?

@Gitkingly
Copy link

#85 looks like this thread fixed this issue, but I had another new issue :(

@engineer1109
Copy link

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants