-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bugfix] Wrap cub with CUB_NS_PREFIX and remove dependency on Thrust …
…to linking issues with Torch 1.8 (dmlc#2758) * Wrap cub with prefixes and remove thrust * Using counting iterator Co-authored-by: Zihao Ye <[email protected]> Co-authored-by: Minjie Wang <[email protected]>
- Loading branch information
1 parent
9aac93f
commit 0ff7127
Showing
7 changed files
with
71 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/*! | ||
* Copyright (c) 2021 by Contributors | ||
* \file cuda_common.h | ||
* \brief Wrapper to place cub in dgl namespace. | ||
*/ | ||
|
||
#ifndef DGL_ARRAY_CUDA_DGL_CUB_CUH_ | ||
#define DGL_ARRAY_CUDA_DGL_CUB_CUH_ | ||
|
||
// include cub in a safe manner | ||
#define CUB_NS_PREFIX namespace dgl { | ||
#define CUB_NS_POSTFIX } | ||
#include "cub/cub.cuh" | ||
#undef CUB_NS_POSTFIX | ||
#undef CUB_NS_PREFIX | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters