Function DP_NewDeepSpinWithParam2

Function DP_NewDeepSpinWithParam2#

Function Documentation#

DP_DeepSpin *DP_NewDeepSpinWithParam2(const char *c_model, const int gpu_rank, const char *c_file_content, const int size_file_content)#

DP constructor with initialization.

Version

2

Since

API version 24

Parameters:
  • c_model – The name of the frozen model file.

  • gpu_rank – The rank of the GPU.

  • c_file_content – The content of the model file.

  • size_file_content – The size of the model file.

Returns:

DP_DeepSpin* A pointer to the deep potential spin model.