From 05b685cc6b15e100450e2a34d54aaa88b7970c87 Mon Sep 17 00:00:00 2001 From: Rene van Oostrum Date: Thu, 8 Aug 2019 10:46:45 -0500 Subject: [PATCH] Add missing hipHostRegister flags to hipify-perl for flags that are defined and supported in hip_runtime_api.h --- bin/hipify-perl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/hipify-perl b/bin/hipify-perl index e375d22928..625d2b6fd2 100755 --- a/bin/hipify-perl +++ b/bin/hipify-perl @@ -252,6 +252,8 @@ while (@ARGV) { $ft{'mem'} += s/\bcudaHostAllocPortable\b/hipHostMallocPortable/g; $ft{'mem'} += s/\bcudaHostAllocMapped\b/hipHostMallocMapped/g; $ft{'mem'} += s/\bcudaHostAllocWriteCombined\b/hipHostMallocWriteCombined/g; + $ft{'mem'} += s/\bcudaHostRegisterDefault\b/hipHostRegisterDefault/g; + $ft{'mem'} += s/\bcudaHostRegisterPortable\b/hipHostRegisterPortable/g; $ft{'mem'} += s/\bcudaHostRegisterMapped\b/hipHostRegisterMapped/g; $ft{'mem'} += s/\bcudaHostRegister\b/hipHostRegister/g; $ft{'mem'} += s/\bcudaHostUnregister\b/hipHostUnregister/g;