From 7246f9eb293e2f72e74c52c44c5a9ef30ba98c32 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 [ROCm/clr commit: 3e5fd98fc3628f3de741e1715884112efd9243f5] --- projects/clr/hipamd/bin/hipify-perl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/clr/hipamd/bin/hipify-perl b/projects/clr/hipamd/bin/hipify-perl index e375d22928..625d2b6fd2 100755 --- a/projects/clr/hipamd/bin/hipify-perl +++ b/projects/clr/hipamd/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;