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

tests compilation problem #85

Open
vladtcvs opened this issue Mar 5, 2019 · 1 comment
Open

tests compilation problem #85

vladtcvs opened this issue Mar 5, 2019 · 1 comment

Comments

@vladtcvs
Copy link

vladtcvs commented Mar 5, 2019

In file included from <built-in>:1:
In file included from /home/vlad/distr/OpenCL/coriander/include/cocl/cocl.h:10:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/stdexcept:38:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/exception:143:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/exception_ptr.h:40:
/usr/lib/llvm-7/lib/clang/7.0.1/include/cuda_wrappers/new:41:12: error: no member named 'malloc' in the global namespace
  return ::malloc(size);
         ~~^
/usr/lib/llvm-7/lib/clang/7.0.1/include/cuda_wrappers/new:58:7: error: no type named 'free' in the global namespace
    ::free(ptr);
    ~~^
2 errors generated when compiling for sm_30.
@AlexandrParkhomenko
Copy link

AlexandrParkhomenko commented Mar 24, 2019

fix:
mv /usr/lib/llvm-7/lib/clang/7.0.1/include/cuda_wrappers/new /usr/lib/llvm-7/lib/clang/7.0.1/include/cuda_wrappers/new2
mv ./new.txt /usr/lib/llvm-7/lib/clang/7.0.1/include/cuda_wrappers/new

new.txt //this is file from clang 4.0.0

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

2 participants