Merge pull request #1615 from emankov/hipify
[HIPIFY][CUB][#1460][perl] Add "cub::" namespace prefix support in hipify-perl as well
이 커밋은 다음에 포함됨:
@@ -1680,6 +1680,7 @@ sub transformKernelLaunch {
|
||||
sub transformCubNamespace {
|
||||
my $k = 0;
|
||||
$k += s/using\s*namespace\s*cub/using namespace hipcub/g;
|
||||
$k += s/\bcub::\b/hipcub::/g;
|
||||
return $k;
|
||||
}
|
||||
|
||||
|
||||
@@ -253,7 +253,8 @@ namespace perl {
|
||||
|
||||
void generateCubNamespace(unique_ptr<ostream>& streamPtr) {
|
||||
*streamPtr.get() << endl << sub << "transformCubNamespace" << " {" << endl_tab << my_k << endl;
|
||||
*streamPtr.get() << tab << "$k += s/using\\s*namespace\\s*cub/using namespace hipcub/g;" << endl << tab << return_k << "}" << endl;
|
||||
*streamPtr.get() << tab << "$k += s/using\\s*namespace\\s*cub/using namespace hipcub/g;" << endl;
|
||||
*streamPtr.get() << tab << "$k += s/\\bcub::\\b/hipcub::/g;" << endl << tab << return_k << "}" << endl;
|
||||
}
|
||||
|
||||
void generateHostFunctions(unique_ptr<ostream>& streamPtr) {
|
||||
|
||||
새 이슈에서 참조
사용자 차단