We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb2da92 commit abf7e39Copy full SHA for abf7e39
flang/lib/Semantics/check-cuda.cpp
@@ -768,8 +768,9 @@ void CUDAChecker::Enter(const parser::AssignmentStmt &x) {
768
Fortran::evaluate::HasCUDAImplicitTransfer(assign->rhs)) {
769
if (GetNbOfCUDAManagedOrUnifiedSymbols(assign->lhs) == 1 &&
770
GetNbOfCUDAManagedOrUnifiedSymbols(assign->rhs) == 1 &&
771
- GetNbOfCUDADeviceSymbols(assign->rhs) == 1)
+ GetNbOfCUDADeviceSymbols(assign->rhs) == 1) {
772
return; // This is a special case handled on the host.
773
+ }
774
context_.Say(lhsLoc, "Unsupported CUDA data transfer"_err_en_US);
775
}
776
0 commit comments