Return-Path: X-Original-To: apmail-systemml-dev-archive@minotaur.apache.org Delivered-To: apmail-systemml-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28C2C19C74 for ; Thu, 14 Apr 2016 20:34:01 +0000 (UTC) Received: (qmail 62002 invoked by uid 500); 14 Apr 2016 20:34:01 -0000 Delivered-To: apmail-systemml-dev-archive@systemml.apache.org Received: (qmail 61954 invoked by uid 500); 14 Apr 2016 20:34:00 -0000 Mailing-List: contact dev-help@systemml.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@systemml.incubator.apache.org Delivered-To: mailing list dev@systemml.incubator.apache.org Received: (qmail 61942 invoked by uid 99); 14 Apr 2016 20:34:00 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2016 20:34:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D01161A1152 for ; Thu, 14 Apr 2016 20:33:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 61NG6ZihHvCW for ; Thu, 14 Apr 2016 20:33:57 +0000 (UTC) Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A13245FAFB for ; Thu, 14 Apr 2016 20:33:57 +0000 (UTC) Received: by mail-wm0-f49.google.com with SMTP id n3so4849391wmn.0 for ; Thu, 14 Apr 2016 13:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=abP3ZzrfBGq7ze38lEks5A1awgAv7jKRwsvhnB4JkYo=; b=gBd+p6BQoF7bN0Cp6w0K6sa9e1VtNLwsBQswpRb7NQFqy59iecUQR99WKLxvq5XyOX eac/+VhAhyklRkOEhCrevLUDTmv18ZD+nIHNrcHlkZTaKN9RNIWxYDzKELqV+xoKsfbi hLW00OTe4diIjG1eRSDqWKXZPnQYKfC212oqXhW8bADm5MMekhSZUR1Gyjg+g/nZ0iOn O5AX01je0FDdtpKgrfvsaLwxXqLGdWS+Ay6erlYvS7rM3DMkvbMKMdkbGMGJwpcitbJE q7Rg4AOwYTC4NqX8ocx/G1lnYETEUKYWGZJoqTx+/QyomKO7mFl2gMtx8mLO4fGKSEFU GAgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=abP3ZzrfBGq7ze38lEks5A1awgAv7jKRwsvhnB4JkYo=; b=QreqIICZdus7tLC+sC0jq19JSur3O7F8eDAs3Ora8Sh0jTvr57KRmz3QQVJwjBEl4Z o29s/VQRKfDZ7/ZLT7K0dtOnHXZ9LW4J3GmvGYJeeQrCEPD2P0QdRaGqtQQ5bVBlu1mI JsAXaP892ZV6XNGMy8wAkgTPzl2h85Z8IvUWBB/COKrXZUcsEYTSF8gfgWld5p7iskeC fR/wC7X5xRx76jpc7hfCI13kuMk1vkE+V0YSDcNdnc4nElqhMraikhW0WrfRWyNHXDCz LGlzAIJsj3/tBmzHq02W5CAI7auZ0FHDvoGKWZnqX9wlevUNz7RbzMSQYagOxHb4KFR8 rmaQ== X-Gm-Message-State: AOPr4FUFObsblc+KAACnfcPqMYkIxn512prhcpnZhv9ZxwkzarF0SZvQsJ8/s4aoEL5aHpRmiSItX30a73w0mw== MIME-Version: 1.0 X-Received: by 10.28.61.8 with SMTP id k8mr515741wma.7.1460666036636; Thu, 14 Apr 2016 13:33:56 -0700 (PDT) Received: by 10.28.17.145 with HTTP; Thu, 14 Apr 2016 13:33:56 -0700 (PDT) Date: Thu, 14 Apr 2016 16:33:56 -0400 Message-ID: Subject: parfor fails From: Ethan Xu To: dev@systemml.incubator.apache.org Content-Type: multipart/alternative; boundary=001a114b2f263fd4bb053077d035 --001a114b2f263fd4bb053077d035 Content-Type: text/plain; charset=UTF-8 Hello, I have a quick question. The following script fails with this error: org.apache.sysml.runtime.DMLRuntimeException: PARFOR: Failed to execute loop in parallel. Here is the dml script: x=read($X); print("number of rows of x = " + nrow(x)); print("number of cols of x = " + ncol(x)); parfor(i in 1:ncol(x), check=0){ a = x[,i]; print("number of 0's in col " + i + " = " + sum(a == 0)); } where X is a 35 million by 2396 matrix (coded and dummy coded numerical matrix) on HDFS. The script runs fine with regular 'for' loops. Could someone explain why this script cannot run in parallel? Was it a wrong way to code parfor? Thanks, Ethan --001a114b2f263fd4bb053077d035--