From dev-return-5606-archive-asf-public=cust-asf.ponee.io@madlib.apache.org Wed Nov 6 23:37:50 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 46B6E180651 for ; Thu, 7 Nov 2019 00:37:50 +0100 (CET) Received: (qmail 40759 invoked by uid 500); 6 Nov 2019 23:37:49 -0000 Mailing-List: contact dev-help@madlib.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@madlib.apache.org Delivered-To: mailing list dev@madlib.apache.org Received: (qmail 40747 invoked by uid 99); 6 Nov 2019 23:37:49 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2019 23:37:49 +0000 From: GitBox To: dev@madlib.apache.org Subject: [GitHub] [madlib] fmcquillan99 edited a comment on issue #455: DL: Add new helper function for gpu_configuration Message-ID: <157308346944.15351.1667188405889754688.gitbox@gitbox.apache.org> Date: Wed, 06 Nov 2019 23:37:49 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit fmcquillan99 edited a comment on issue #455: DL: Add new helper function for gpu_configuration URL: https://github.com/apache/madlib/pull/455#issuecomment-550529308 ``` SELECT * FROM madlib.gpu_configuration(); hostname | gpu_descr ----------+------------------------------------------------------------------------------------------ phoenix0 | device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0 phoenix0 | device: 1, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:05.0, compute capability: 6.0 phoenix0 | device: 2, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:06.0, compute capability: 6.0 phoenix0 | device: 3, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:07.0, compute capability: 6.0 phoenix1 | device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0 phoenix1 | device: 1, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:05.0, compute capability: 6.0 phoenix1 | device: 2, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:06.0, compute capability: 6.0 phoenix1 | device: 3, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:07.0, compute capability: 6.0 phoenix2 | device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0 phoenix2 | device: 1, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:05.0, compute capability: 6.0 phoenix2 | device: 2, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:06.0, compute capability: 6.0 phoenix2 | device: 3, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:07.0, compute capability: 6.0 phoenix3 | device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0 phoenix3 | device: 1, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:05.0, compute capability: 6.0 phoenix3 | device: 2, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:06.0, compute capability: 6.0 phoenix3 | device: 3, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:07.0, compute capability: 6.0 phoenix4 | device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0 phoenix4 | device: 1, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:05.0, compute capability: 6.0 phoenix4 | device: 2, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:06.0, compute capability: 6.0 phoenix4 | device: 3, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:07.0, compute capability: 6.0 (20 rows) ``` OK However the below does not work: ``` CREATE TABLE gpu_resources AS SELECT * FROM madlib.gpu_configuration(); NOTICE: Table doesn't have 'DISTRIBUTED BY' clause. Creating a NULL policy entry. ERROR: plpy.SPIError: function cannot execute on segment because it issues a non-SELECT statement (entry db 10.138.0.41:5432 pid=16886) DETAIL: Traceback (most recent call last): PL/Python function "gpu_configuration", line 21, in with AOControl(False) and MinWarning("error"): PL/Python function "gpu_configuration", line 154, in __enter__ PL/Python function "gpu_configuration" SQL function "gpu_configuration" statement 1 ``` I think this is a problem. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services