From f715f174bb3dea539504c569050d555dee4f515a Mon Sep 17 00:00:00 2001 From: "W. Michael Brown" Date: Thu, 6 Oct 2022 21:40:42 -0700 Subject: [PATCH] GPU Package: Print OCL platform name to screen when multiple platforms --- lib/gpu/lal_device.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/gpu/lal_device.cpp b/lib/gpu/lal_device.cpp index 5438df2a78..84263ad3da 100644 --- a/lib/gpu/lal_device.cpp +++ b/lib/gpu/lal_device.cpp @@ -609,6 +609,10 @@ void DeviceT::init_message(FILE *screen, const char *name, int last=last_gpu+1; if (last>gpu->num_devices()) last=gpu->num_devices(); + if (gpu->num_platforms()>1) { + std::string pname=gpu->platform_name(); + fprintf(screen,"Platform: %s\n",pname.c_str()); + } for (int i=first_gpu; i