From owner-nwchem-users@emsl.pnl.gov Tue Jun 22 13:02:57 2004 Received: from odyssey.emsl.pnl.gov (localhost [127.0.0.1]) by odyssey.emsl.pnl.gov (8.12.10/8.12.10) with ESMTP id i5MK2u68023437 for ; Tue, 22 Jun 2004 13:02:56 -0700 (PDT) Received: (from majordom@localhost) by odyssey.emsl.pnl.gov (8.12.10/8.12.10/Submit) id i5MK2udk023436 for nwchem-users-outgoing; Tue, 22 Jun 2004 13:02:56 -0700 (PDT) Message-ID: <40D8906F.40902@pnl.gov> Date: Tue, 22 Jun 2004 13:02:55 -0700 From: Jarek Nieplocha User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 To: mwill@penguincomputing.com CC: Vasiliy Znamenskiy , nwchem-users@emsl.pnl.gov, rt-consult-comment@ccs.ornl.gov Subject: Re: nga_put:cannot locate region References: <200406221250.48565.mwill@penguincomputing.com> In-Reply-To: <200406221250.48565.mwill@penguincomputing.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-nwchem-users@emsl.pnl.gov Precedence: bulk GA handles are negative numbers. -985 looks like a reasonable number for a handle. Besides, if the specified handle was invalid, ga_put call would abort complaining about invalid handle. Jarek > On Tuesday 22 June 2004 12:28 pm, Vasiliy Znamenskiy wrote: > > What does this error's message mean? > > 0:0:nga_put:cannot locate region: [409:409 ,409:409 ]:: > > -985 > > Last System Error Message from Task 0:: Interrupted system > > call > > The global array component could not write to the array specified. I wonder > what -985 stands for? Maybe it is the negative handle indicating an error: > > http://www.emsl.pnl.gov/docs/global/c_nga_ops.html is not very specific > on the > error conditions, and the function in fact does not return a value > directly: > > GA_PUT > > void NGA_Put(int g_a, int lo[], int hi[], void* buf, int ld[]) > g_a - global array handle [output] > ndim - number of dimensions of the global array > lo[ndim] - array of starting indices for global array section > [input] > hi[ndim] - array of ending indices for global array section > [input] > buf - pointer to the local buffer array where the data is > [input] > ld[ndim-1] - array specifying leading dimensions/strides/extents for > buffer array [input] > > Copies data from local array buffer to the global array section . The local > array is assumed to be have the same number of dimensions as the global > array. > Any detected inconsitencies/errors in input arguments are fatal. > > Michael > -- > Michael Will, Linux Sales Engineer > NEWS: We have moved to a larger iceberg :-) > NEWS: 300 California St., San Francisco, CA. > Tel: 415-954-2822 Toll Free: 888-PENGUIN > Fax: 415-954-2899 > www.penguincomputing.com >