Skip to content

Commit

Permalink
update for v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Shota Kurihara committed May 24, 2021
1 parent 529b06f commit 32425cd
Show file tree
Hide file tree
Showing 32 changed files with 528 additions and 154 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
Before the installation, the following components are required to be installed on your x86 Node of SX-Aurora TSUBASA.

- [NEC SDK](https://www.hpc.nec/documents/guide/pdfs/InstallationGuide_E.pdf)
- required NEC C/C++ compiler version: >= 3.1.1
- required NLC version: >= 2.2.0
- required NEC C/C++ compiler version: >= 3.2.1
- required NLC version: >= 2.3.0

- [Alternative VE Offloading (AVEO)](https://www.hpc.nec/documents/veos/en/aveo/index.html)

Expand Down
24 changes: 12 additions & 12 deletions doc/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ Installation Guide
This page describes installation of NLCPy.

.. attention::
- Since April 2021, NLCPy has been provided as a software of NEC SDK (NEC Software
Development Kit for Vector Engine). If NEC SDK on your machine has been properly
installed or updated after that, NLCPy is available by using ``/usr/bin/python3``
command, and the installation described in this page is not needed.
However, when you use another Python command such as ``/usr/local/bin/python3``
and `python3` in a virtual environment, please install NLCPy from a wheel
- Since April 2021, NLCPy has been provided as a software of NEC SDK (NEC Software
Development Kit for Vector Engine). If NEC SDK on your machine has been properly
installed or updated after that, NLCPy is available by using ``/usr/bin/python3``
command, and the installation described in this page is not needed.
However, when you use another Python command such as ``/usr/local/bin/python3``
and `python3` in a virtual environment, please install NLCPy from a wheel
package or source files described in this page.

.. seealso::
`SX-Aurora TSUBASA Installation Guide
<https://www.hpc.nec/documents/guide/pdfs/InstallationGuide_E.pdf>`_

- The libraries of NLCPy are located in the following directory after NEC SDK
- The libraries of NLCPy are located in the following directory after NEC SDK
is installed or updated::

/opt/nec/ve/nlcpy/X.X.X/lib/python36/nlcpy

Here, X.X.X denotes the version of NLCPy.
If you install or update NEC SDK, the directory of the latest version of
If you install or update NEC SDK, the directory of the latest version of
NLCPy is added in Python module search path. When you use a specific
version of NLCPy, the evironmental variable **PYTHONPATH** must be set as
follows::

$ export PYTHONPATH=/opt/nec/ve/nlcpy/X.X.X/lib/python36/

Requirements
Expand All @@ -39,8 +39,8 @@ installed on your x86 Node of SX-Aurora TSUBASA.

* | `NEC SDK <https://www.hpc.nec/documents/guide/pdfs/InstallationGuide_E.pdf>`_

- required NEC C/C++ compiler version: >= 3.1.1
- required NLC version: >= 2.2.0
- required NEC C/C++ compiler version: >= 3.2.1
- required NLC version: >= 2.3.0

* | `Alternative VE Offloading (AVEO) <https://www.hpc.nec/documents/veos/en/aveo/index.html>`_

Expand Down Expand Up @@ -93,7 +93,7 @@ You can install NLCPy by executing either of following commands.

$ pip install <path_to_wheel>

The shared objects for Vector Engine, which are included in the wheel package, are compiled and tested by using NEC C/C++ Version 3.1.1 and NumPy v1.17.4.
The shared objects for Vector Engine, which are included in the wheel package, are compiled and tested by using NEC C/C++ Version 3.2.1 and NumPy v1.17.4.


Install from source (with building)
Expand Down
Binary file modified doc/source/locale/ja/LC_MESSAGES/installation.mo
Binary file not shown.
24 changes: 12 additions & 12 deletions doc/source/locale/ja/LC_MESSAGES/installation.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: nlcpy 1.0.0b1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-12 11:33+0900\n"
"POT-Creation-Date: 2021-05-19 15:45+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -84,12 +84,12 @@ msgid ""
msgstr ""

#: ../../source/installation.rst:42
msgid "required NEC C/C++ compiler version: >= 3.1.1"
msgstr "必要なNEC C/C++ コンパイラバージョン: >= 3.1.1"
msgid "required NEC C/C++ compiler version: >= 3.2.1"
msgstr "必要なNEC C/C++ コンパイラバージョン: >= 3.2.1"

#: ../../source/installation.rst:43
msgid "required NLC version: >= 2.2.0"
msgstr "必要なNLCバージョン: >= 2.2.0"
msgid "required NLC version: >= 2.3.0"
msgstr "必要なNLCバージョン: >= 2.3.0"

#: ../../source/installation.rst
msgid ""
Expand All @@ -99,11 +99,11 @@ msgstr ""
"`Alternative VE Offloading (AVEO) "
"<https://www.hpc.nec/documents/veos/en/aveo/index.html>`_"

#: ../../source/installation.rst
#: ../../source/installation.rst:49
msgid ""
"The following installation of AVEO is not necessary if VEOS 2.5.1 or later is installed on your machine."
msgstr ""
"VEOS 2.5.1以降がマシンにインストールされていれば、以下のAVEOパッケージのインストールは不要です。"
"The following installation of AVEO is not necessary if VEOS 2.5.1 or "
"later is installed on your machine."
msgstr "VEOS 2.5.1以降がマシンにインストールされていれば、以下のAVEOパッケージのインストールは不要です。"

#: ../../source/installation.rst
msgid ""
Expand Down Expand Up @@ -169,17 +169,17 @@ msgstr "`GitHub <https://github.com/SX-Aurora/nlcpy/>`_ からwheelパッケー
msgid "Put the wheel package to your any directory."
msgstr "wheelパッケージを任意のディレクトリに配置"

#: ../../source/installation.rst:89
#: ../../source/installation.rst:90
msgid "Install the local wheel package via pip command."
msgstr "pipコマンドを使用してローカルのwheelパッケージをインストール"

#: ../../source/installation.rst:96
msgid ""
"The shared objects for Vector Engine, which are included in the wheel "
"package, are compiled and tested by using NEC C/C++ Version 3.1.1 and "
"package, are compiled and tested by using NEC C/C++ Version 3.2.1 and "
"NumPy v1.17.4."
msgstr ""
"wheelパッケージに含まれているVector Engine用の共有オブジェクトは、NEC C/C++ バージョン3.1.1とNumPy "
"wheelパッケージに含まれているVector Engine用の共有オブジェクトは、NEC C/C++ バージョン3.2.1とNumPy "
"v1.17.4を使用してコンパイルおよびテストしています。"

#: ../../source/installation.rst:100
Expand Down
1 change: 0 additions & 1 deletion doc/source/locale/ja/LC_MESSAGES/reference/constants.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# This file is distributed under the same license as the nlcpy package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: nlcpy 1.0.0\n"
Expand Down
Binary file modified doc/source/locale/ja/LC_MESSAGES/reference/creation.mo
Binary file not shown.
8 changes: 5 additions & 3 deletions doc/source/locale/ja/LC_MESSAGES/reference/creation.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
# This file is distributed under the same license as the nlcpy package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: nlcpy 1.0.0b1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-05 14:32+0900\n"
"POT-Creation-Date: 2021-05-19 15:45+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -112,7 +111,7 @@ msgid "Returns a full array with the same shape and type as a given array."
msgstr ""

#: ../../source/reference/creation.rst:26
msgid "From Exixting Data"
msgid "From Existing Data"
msgstr ""

#: ../../source/reference/creation.rst:39:<autosummary>:1
Expand Down Expand Up @@ -214,3 +213,6 @@ msgstr ""
#~ msgid "Returns a new array of given shape and type, filled with *fill_value.*"
#~ msgstr ""

#~ msgid "From Exixting Data"
#~ msgstr ""

Binary file modified doc/source/locale/ja/LC_MESSAGES/reference/mathematical.mo
Binary file not shown.
7 changes: 5 additions & 2 deletions doc/source/locale/ja/LC_MESSAGES/reference/mathematical.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: nlcpy 1.0.0b1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-05 14:32+0900\n"
"POT-Creation-Date: 2021-05-19 15:45+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -208,7 +208,7 @@ msgid ":obj:`nlcpy.prod <nlcpy.prod>`"
msgstr ""

#: ../../source/reference/mathematical.rst:59:<autosummary>:1
msgid "Return the product of array elements over a given axis."
msgid "Returns the product of array elements over a given axis."
msgstr ""

#: ../../source/reference/mathematical.rst:59:<autosummary>:1
Expand Down Expand Up @@ -555,3 +555,6 @@ msgstr ""
msgid ":obj:`nlcpy.fmin <nlcpy.fmin>`"
msgstr ""

#~ msgid "Return the product of array elements over a given axis."
#~ msgstr ""

Binary file modified doc/source/locale/ja/LC_MESSAGES/reference/random.mo
Binary file not shown.
14 changes: 10 additions & 4 deletions doc/source/locale/ja/LC_MESSAGES/reference/random.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ msgid ""
msgstr ""
"Project-Id-Version: nlcpy 1.0.0b1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-11-18 17:24+0900\n"
"POT-Creation-Date: 2021-05-19 15:45+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.7.0\n"
"Generated-By: Babel 2.9.0\n"

#: ../../source/reference/random.rst:4
msgid "Random Sampling"
Expand Down Expand Up @@ -295,7 +295,7 @@ msgid ""
msgstr ""

#: ../../source/reference/random.rst:119:<autosummary>:1
msgid "Returns a ndarray representing the internal state of the generator."
msgid "Returns an ndarray representing the internal state of the generator."
msgstr ""

#: ../../source/reference/random.rst:119:<autosummary>:1
Expand All @@ -315,7 +315,7 @@ msgid ""
msgstr ""

#: ../../source/reference/random.rst:119:<autosummary>:1
msgid "Sets the internal state of the generator from a ndarray."
msgid "Sets the internal state of the generator from an ndarray."
msgstr ""

#: ../../source/reference/random.rst:137:<autosummary>:1
Expand Down Expand Up @@ -478,3 +478,9 @@ msgstr ""
msgid ":obj:`nlcpy.random.RandomState.weibull <nlcpy.random.RandomState.weibull>`"
msgstr ""

#~ msgid "Returns a ndarray representing the internal state of the generator."
#~ msgstr ""

#~ msgid "Sets the internal state of the generator from a ndarray."
#~ msgstr ""

Binary file modified doc/source/locale/ja/LC_MESSAGES/reference/statistics.mo
Binary file not shown.
14 changes: 11 additions & 3 deletions doc/source/locale/ja/LC_MESSAGES/reference/statistics.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: nlcpy 1.0.0b1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-05 14:32+0900\n"
"POT-Creation-Date: 2021-05-19 15:45+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -192,7 +192,7 @@ msgid ":obj:`nlcpy.correlate <nlcpy.correlate>`"
msgstr ""

#: ../../source/reference/statistics.rst:50:<autosummary>:1
msgid "Cross-correlation of two 1-dimensional sequences.."
msgid "Cross-correlation of two 1-dimensional sequences."
msgstr ""

#: ../../source/reference/statistics.rst:50:<autosummary>:1
Expand Down Expand Up @@ -252,7 +252,9 @@ msgid ":obj:`nlcpy.histogram_bin_edges <nlcpy.histogram_bin_edges>`"
msgstr ""

#: ../../source/reference/statistics.rst:63:<autosummary>:1
msgid "Function to calculate only the edges of the bins used by the"
msgid ""
"Function to calculate only the edges of the bins used by "
":func:`histogram` function."
msgstr ""

#: ../../source/reference/statistics.rst:63:<autosummary>:1
Expand All @@ -265,3 +267,9 @@ msgid ""
"belongs."
msgstr ""

#~ msgid "Cross-correlation of two 1-dimensional sequences.."
#~ msgstr ""

#~ msgid "Function to calculate only the edges of the bins used by the"
#~ msgstr ""

Binary file not shown.
47 changes: 47 additions & 0 deletions doc/source/locale/ja/LC_MESSAGES/release_notes/v1.0.1.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2020-2021, NEC Corporation
# This file is distributed under the same license as the nlcpy package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: nlcpy 1.0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-05-19 16:06+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.0\n"

#: ../../source/release_notes/v1.0.1.rst:3
msgid "What's new in Version 1.0.1 (May 31, 2021)"
msgstr "バージョン1.0.1の更新事項(2021年5月31日)"

#: ../../source/release_notes/v1.0.1.rst:8
msgid "Problem Fixes"
msgstr "不具合修正"

#: ../../source/release_notes/v1.0.1.rst:10
msgid ""
"Fixed abnormal termination that could occur when a Python script using "
"NLCPy is executed by a batch scheduler."
msgstr "バッチ環境で実行に失敗する不具合を修正"

#: ../../source/release_notes/v1.0.1.rst:11
msgid ""
"Fixed a problem that stalls when a multi-dimensional :class:`ndarray` is "
"specified as a parameter to :func:`sort` ."
msgstr ":func:`sort` に多次元の :class:`ndarray` が指定された時にストールする不具合を修正"

#: ../../source/release_notes/v1.0.1.rst:15
msgid "Function Enhancements"
msgstr "機能強化"

#: ../../source/release_notes/v1.0.1.rst:17
msgid "Improved a part of the memory allocation logic during the lazy evaluation."
msgstr "遅延評価時のメモリ確保のロジックの一部を改善"

1 change: 1 addition & 0 deletions doc/source/release_notes/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ This is the list of the revision history of NLCPy between each releases.
.. toctree::
:maxdepth: 1

v1.0.1
v1.0.0
v1.0.0b2
17 changes: 17 additions & 0 deletions doc/source/release_notes/v1.0.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
============================================
What's new in Version 1.0.1 (May 31, 2021)
============================================

.. currentmodule:: nlcpy

Problem Fixes
-------------

* Fixed abnormal termination that could occur when a Python script using NLCPy is executed by a batch scheduler.
* Fixed a problem that stalls when a multi-dimensional :class:`ndarray` is specified as a parameter to :func:`sort` .


Function Enhancements
---------------------

* Improved a part of the memory allocation logic during the lazy evaluation.
2 changes: 1 addition & 1 deletion nlcpy/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.0'
__version__ = '1.0.1'
6 changes: 3 additions & 3 deletions nlcpy/core/internal.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ cpdef inline bint get_c_contiguity(
vector[Py_ssize_t]& strides,
Py_ssize_t itemsize):
cdef vector[Py_ssize_t] r_shape, r_strides
cpdef Py_ssize_t ndim
cdef Py_ssize_t ndim
ndim = strides.size()
if ndim == 0 or (ndim == 1 and strides[0] == itemsize):
return True
Expand Down Expand Up @@ -216,8 +216,8 @@ cpdef inline Py_ssize_t _extract_slice_element(x) except? 0:


cpdef slice complete_slice(slice slc, Py_ssize_t dim):
cpdef Py_ssize_t start=0, stop=0, step=0
cpdef bint start_none, stop_none
cdef Py_ssize_t start=0, stop=0, step=0
cdef bint start_none, stop_none
if slc.step is None:
step = 1
else:
Expand Down
8 changes: 5 additions & 3 deletions nlcpy/linalg/norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ def _lange(x, norm, axis):
if x.size == 0:
shape = [x.shape[i] for i in set(range(x.ndim)) - set(axis)]
return nlcpy.zeros(shape, dtype=dtype)
if norm in (None, 'fro'):
norm = 'F'
elif norm == nlcpy.inf:
if norm in (None, 'fro', 'f'):
if x.dtype.kind == 'c':
x = abs(x)
return nlcpy.sqrt(nlcpy.sum(x * x, axis=axis))
if norm == nlcpy.inf:
norm = 'I'
else:
norm = '1'
Expand Down
Loading

0 comments on commit 32425cd

Please sign in to comment.