Closed lmarval closed 9 months ago
Hi @lmarval, great work. Looks like you found some points of improvements. A PR would be appreciated. Using additional libs is a great feature to have. Perhaps, we should extend the implementation to have the ability to list desired libs. I'd suggest introducing a new flag. Are you interested in contributing to the project? If so, please do, I will review any contribution ASAP. If not, not a problem, I will consider your proposal later. Thanks!
Hello @lmarval and thank you for your contribution! In the documentation of version 1.1.0 we added a notebook showing how to compile CUDA C++ with OpenCV by passing the necessary arguments to nvcc. As for the error, it is no longer an issue.
Hi, nice project. I came to learn a lot from it.
I got these errors when using
%%cuda --name sourcecodename.cu --compile true
1) " helper.py TypeError: a bytes-like object is required, not 'str' " 2) " 'Namespace' object has no attribute 'timeit' "I got to solve them as follows: 1)in v2.py, line 49, add:
@argument("-t", "--timeit", action='store_true', help='flag to return timeit result instead of stdout')
2)in v2.py, line change tp:
res.decode("utf8")
I was trying to use the plugin with opencv in Colab. I think I solved it. Allow me to share the solution here.
modified version of v2.py:
important changes are:
I tested it with the following cell (not a thoroughly test though)