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

Make the nvtx library header-only #307

Closed
eyalroz opened this issue Mar 25, 2022 · 0 comments
Closed

Make the nvtx library header-only #307

eyalroz opened this issue Mar 25, 2022 · 0 comments

Comments

@eyalroz
Copy link
Owner

eyalroz commented Mar 25, 2022

The argument in favor of having nvtx an actual library, rather than header-only, is that it allows compilation of code using nvtx without including pthreads etc. But - is that so useful? You still need to link against it. Let's just go full header-only, if possible.

@eyalroz eyalroz added the task label Mar 25, 2022
@eyalroz eyalroz self-assigned this Mar 25, 2022
eyalroz added a commit that referenced this issue Mar 25, 2022
…nly.

* Dropped `profiling.cpp` - all necessary code is now in `profiling.hpp`.
* No longer taking `std::string`'s for messages - there's no need to force the user to construct such strings.
* Templated all functions taking strings to take either a `const char*` or `const wchar_t *`.
* Some duplicate code factor-out and other clean-up.
* Added an example program which uses some of the profiling functionality: `other/vectorAdd_profiled`.
eyalroz added a commit that referenced this issue Mar 25, 2022
…nly.

* Dropped `profiling.cpp` - all necessary code is now in `profiling.hpp`.
* No longer taking `std::string`'s for messages - there's no need to force the user to construct such strings.
* Templated all functions taking strings to take either a `const char*` or `const wchar_t *`.
* Some duplicate code factor-out and other clean-up.
* Added an example program which uses some of the profiling functionality: `other/vectorAdd_profiled`.
eyalroz added a commit that referenced this issue Mar 25, 2022
…nly.

* Dropped `profiling.cpp` - all necessary code is now in `profiling.hpp`.
* No longer taking `std::string`'s for messages - there's no need to force the user to construct such strings.
* Templated all functions taking strings to take either a `const char*` or `const wchar_t *`.
* Some duplicate code factor-out and other clean-up.
* Added an example program which uses some of the profiling functionality: `other/vectorAdd_profiled`.
eyalroz added a commit that referenced this issue Mar 26, 2022
…nly.

* Dropped `profiling.cpp` - all necessary code is now in `profiling.hpp`.
* No longer taking `std::string`'s for messages - there's no need to force the user to construct such strings.
* Templated all functions taking strings to take either a `const char*` or `const wchar_t *`.
* Some duplicate code factor-out and other clean-up.
* Added an example program which uses some of the profiling functionality: `other/vectorAdd_profiled`.
@eyalroz eyalroz closed this as completed in a1c1e1b May 9, 2022
eyalroz added a commit that referenced this issue Jun 20, 2022
…nly.

* Dropped `profiling.cpp` - all necessary code is now in `profiling.hpp`.
* No longer taking `std::string`'s for messages - there's no need to force the user to construct such strings.
* Templated all functions taking strings to take either a `const char*` or `const wchar_t *`.
* Some duplicate code factor-out and other clean-up.
* Added an example program which uses some of the profiling functionality: `other/vectorAdd_profiled`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant