Skip to content

Conversation

@Paaaaarth
Copy link
Contributor

This pull request introduces a significant change to the lasy codebase by replacing numpy with a backend abstraction (xp) that defaults to cupy if available, enabling GPU acceleration. Additionally, it updates workflow configurations and adds a coverage badge. Below is a summary of the most important changes grouped by theme.

Backend abstraction for GPU acceleration:

RemiLehe and others added 30 commits July 16, 2024 05:40
# Set right FFT functions
if inverse:
xfftshift = np.fft.ifftshift
xfftshift = xp.fft.ifftshift

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable xfftshift is not used.
# Set right FFT functions
if inverse:
xfftshift = np.fft.ifftshift
xfftshift = xp.fft.ifftshift

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable xfftshift is not used.
laser_3d.dim, laser_3d.grid, 2.0 * xp.pi / 0.6e-6
)
[beta_x, beta_y] = get_beta(laser_3d.dim, laser_3d.grid, 2.0 * np.pi / 0.6e-6)
[beta_x, beta_y] = get_beta(laser_3d.dim, laser_3d.grid, 2.0 * xp.pi / 0.6e-6)

Check notice

Code scanning / CodeQL

Unused global variable Note test

The global variable 'beta_x' is not used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants