About EDEM API tutorial in linux and GPU solver conversion
I have several packed dll about 'custom factory', 'custom particle body force' and 'custom contact model', also have the corresponding visutalstudio2017 header files.
How can I transfer them into linux .so document, and make them avalible for GPU solver? How does the packing works? and how do I compile .cu files?
I know there are several tutorial exists, but they are hard to follow because they are vague. It would be really helpful if there's step by step video tutorial.
Thanks
Qin
Find more posts tagged with
#ifndef CUDACC
#include "cudaApiCore.cuh"
#include "apiConstants.cuh"
#include "CApiContact.cuh"
#include "CApiContactResults.cuh"
#include "CApiCustomPropertyData.cuh"
#include "CApiElement.cuh"
#include "CApiFieldData.cuh"
#include "CApiInteraction.cuh"
#include "CApiParticle.cuh"
#include "CApiSimulation.cuh"
#include "CApiTotalForce.cuh"
#include "CApiGeomTriangleInfo.cuh"
#include "CApiTriangleDeformationResult.cuh"
#include "CMat3x3.cuh"
#include "CQuaternion.cuh"
#include "CUtilitiesEquations.cuh"
#include "CUtilitiesMath.cuh"
#include "CUtilitiesPrecision.cuh"
#include "CVec3.cuh"
#endif
I found another tutorial have such include document, where can I find the menu of including requirement
Hi,
I would make sure the version of the code you are using is all up to date with your installed version
The detailed API documentation is in C:\Program Files\Altair\2024.1\EDEM\src\Api\Help > index.html (or your installed location) which gives all the functions. Starting runs some code on pressing play in the Simulator, it is not needed as standard but can be useful in some cases.
Hi, the folder structure for the header files is the same on Windows and Linux, but the default install location for the software may be different. If you have the altair isntall folder you can find then the header files in /version number/edem//src/Api
The files are the same on Windows and Linux, so you can just copy the required header files for the API from your windows install to the Linux machine if it's easier.
Regards
Stephen
Hi Qin,
Please find the attached document the steps to convert dll to .so (Linux supported format) is explained from page-12 .
Hope this helps.
Thanks,
Prasad A