-
Notifications
You must be signed in to change notification settings - Fork 100
Make all headers self-contained #141
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
Changes from all commits
4bca172
5418d25
cc7dc14
5e9106c
029edcb
3f1fee5
9e90d87
48688ce
ca5d052
edb0bfd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| /* | ||
| * Copyright (c) 2020, NVIDIA CORPORATION. | ||
| * Copyright (c) 2020-2022, NVIDIA CORPORATION. | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
|
|
@@ -14,11 +14,14 @@ | |
| * limitations under the License. | ||
| */ | ||
|
|
||
| #include <benchmark/benchmark.h> | ||
| #include <synchronization.hpp> | ||
|
|
||
| #include <cuco/dynamic_map.cuh> | ||
|
|
||
| #include <benchmark/benchmark.h> | ||
|
|
||
| #include <iostream> | ||
| #include <random> | ||
|
Comment on lines
+17
to
24
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems to be a permutation of the same includes. I think
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The idea here is to separate different header groups and order them from "near" to "far". e.g. This grouping method seems a bit awkward with only one file in each group but will show its advantage with more headers involved.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah ok, this makes sense. I wonder however if we should add a CI script for that. Basically extract all includes, check in the include tree where this file originates, group and then reorder. |
||
| #include <synchronization.hpp> | ||
|
|
||
| enum class dist_type { UNIQUE, UNIFORM, GAUSSIAN }; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ | |
| #pragma once | ||
|
|
||
| #include <cuda_runtime_api.h> | ||
|
|
||
| #include <stdexcept> | ||
| #include <string> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -1,5 +1,5 @@ | ||||
| /* | ||||
| * Copyright (c) 2021, NVIDIA CORPORATION. | ||||
| * Copyright (c) 2021-2022, NVIDIA CORPORATION. | ||||
| * | ||||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| * you may not use this file except in compliance with the License. | ||||
|
|
@@ -14,10 +14,15 @@ | |||
| * limitations under the License. | ||||
| */ | ||||
|
|
||||
| #include <cooperative_groups/memcpy_async.h> | ||||
| #include <cuco/detail/pair.cuh> | ||||
|
|
||||
| #include <thrust/type_traits/is_contiguous_iterator.h> | ||||
|
|
||||
| #include <cuco/detail/pair.cuh> | ||||
| #include <cub/block/block_reduce.cuh> | ||||
|
|
||||
| #include <cuda/std/atomic> | ||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We access the atomic types through a
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's still needed due to atomic operations like this:
Removing it will cause build failure:
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes but in L242 we call view.count() which is also not declared (only after the template is instantiated). |
||||
|
|
||||
| #include <cooperative_groups/memcpy_async.h> | ||||
|
|
||||
| namespace cuco { | ||||
| namespace detail { | ||||
|
|
||||
Uh oh!
There was an error while loading. Please reload this page.