File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10940,14 +10940,14 @@ void MemoryMigrationRule::runRule(const MatchFinder::MatchResult &Result) {
1094010940 Name.compare("cuMemHostRegister_v2") &&
1094110941 Name.compare("cudaHostGetFlags") && Name.compare("cuMemHostGetFlags") &&
1094210942 Name.compare("cuMemcpy") && Name.compare("cuMemcpyAsync") &&
10943- Name.compare("cuMemAllocPitch_v2") &&
10943+ Name.compare("cuMemAllocPitch_v2") && Name.compare("cuMemAlloc_v2") &&
1094410944 Name.compare("cudaMallocMipmappedArray") &&
1094510945 Name.compare("cudaGetMipmappedArrayLevel") &&
1094610946 Name.compare("cudaFreeMipmappedArray")) {
1094710947 requestFeature(HelperFeatureEnum::device_ext);
1094810948 insertAroundStmt(C, MapNames::getCheckErrorMacroName() + "(", ")");
1094910949 } else if (IsAssigned && !Name.compare("cudaMemAdvise") &&
10950- DpctGlobalInfo::getUsmLevel() != UsmLevel::UL_None) {
10950+ DpctGlobalInfo::getUsmLevel() != UsmLevel::UL_None) {
1095110951 requestFeature(HelperFeatureEnum::device_ext);
1095210952 insertAroundStmt(C, MapNames::getCheckErrorMacroName() + "(", ")");
1095310953 } else if (IsAssigned && !Name.compare("cudaArrayGetInfo")) {
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ int main(){
4141 CUcontext c1, c2;
4242 // CHECK: f_D = (dpct::device_ptr)sycl::malloc_device(size, q_ct1);
4343 cuMemAlloc (&f_D, size);
44-
44+ // CHECK: r = DPCT_CHECK_ERROR(f_D = (dpct::device_ptr)sycl::malloc_device(size, q_ct1));
45+ r = cuMemAlloc (&f_D, size);
4546 // CHECK: dpct::queue_ptr stream;
4647 CUstream stream;
4748 // CHECK: stream->memcpy(f_D, f_A, size);
You can’t perform that action at this time.
0 commit comments