Skip to content

Commit

Permalink
Prep for release
Browse files Browse the repository at this point in the history
Signed-off by: David Rowenhorst <[email protected]>
  • Loading branch information
drowenhorst-nrl committed May 24, 2024
1 parent f6ff9c6 commit 463cf6f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ Changelog
All notable changes to PyEBSDIndex will be documented in this file. The format is based
on `Keep a Changelog <https://keepachangelog.com/en/1.1.0>`_.

0.3.1 (2024-05-24)
==================

Fixed
-----
- Fixed issue when multiple OpenCL platforms are detected. Will default to discrete GPUs, with whatever platform has the most discrete GPUs attached. Otherwise, will fall back to integrated graphics.


0.3.0 (2024-05-23)
==================
Added
Expand Down
2 changes: 1 addition & 1 deletion pyebsdindex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
]
__description__ = "Python based tool for Radon based EBSD indexing"
__name__ = "pyebsdindex"
__version__ = "0.3.0"
__version__ = "0.3.1"


# Try to import only once - also will perform check that at least one GPU is found.
Expand Down
4 changes: 3 additions & 1 deletion pyebsdindex/opencl/openclparam.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@ def get_platform(self):
self.platform = cl.get_platforms()
return self.platform
def get_gpu(self):

if self.platform is None:
self.get_platform()

if type(self.platform) is not list:
self.platform = [self.platform]

pgpudiscrete = np.zeros(len(self.platform), dtype=int)

for i in range(len(self.platform)):
Expand Down

0 comments on commit 463cf6f

Please sign in to comment.