-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spin orbit torque implementation (#191)
* Abstract the Cuda RK4 solver I've re-implemented the Cuda RK4 solver as a base algorithm which calls functions to integrate. * Add LLG solver with spin orbit torques * Optimise CUDA dipole fft Using the symmetry of the dipole tensor r_ij = r_ji * Use SyncedMemory zero to avoid device transfers
- Loading branch information
Showing
22 changed files
with
591 additions
and
369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// cuda_fft_interaction.h -*-C++-*- | ||
#ifndef INCLUDED_JAMS_CUDA_FFT_INTERACTION | ||
#define INCLUDED_JAMS_CUDA_FFT_INTERACTION | ||
#include <jams/core/hamiltonian.h> | ||
|
||
class CudaFFTInteractionHamiltonian : public Hamiltonian { | ||
|
||
CudaFFTInteractionHamiltonian(const libconfig::Setting &settings, unsigned int size); | ||
|
||
double calculate_total_energy(double time) override; | ||
|
||
void calculate_energies(double time) override; | ||
|
||
void calculate_fields(double time) override; | ||
|
||
Vec3 calculate_field(int i, double time) override; | ||
|
||
double calculate_energy(int i, double time) override; | ||
|
||
double calculate_energy_difference(int i, const Vec3 &spin_initial, const Vec3 &spin_final, double time) override; | ||
|
||
private: | ||
CudaStream cusparse_stream_; // cuda stream to run in | ||
|
||
}; | ||
|
||
#endif | ||
// ----------------------------- END-OF-FILE ---------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.