Extension of the prebuilt API to be able to load prebuilt kernels stored in JAR files.
Example:
TaskGraph taskGraph = new TaskGraph("reftg")
.transferToDevice(DataTransferMode.EVERY_EXECUTION, problemDimensions, problemParameters, doubleTimes, doubleValues, doubleWeights, doubleFreqs, tsIdPerFreq)
.prebuiltTask("t1", // task name
"sampleKernel", // kernel nme
MyJavaClass.class, // class accessible from the JAR file that contains the resource
"myKernel.ptx", // name of the kernel file
new Object[] { problemDimensions, problemParameters, doubleTimes, doubleValues, doubleWeights, doubleFreqs, tsIdPerFreq, doubleAmplitudes, doubleDebug }, //
new Access[] { Access.READ_ONLY, Access.READ_ONLY, Access.READ_ONLY,Access.READ_ONLY,Access.READ_ONLY, Access.READ_ONLY, Access.READ_ONLY, Access.WRITE_ONLY, Access.WRITE_ONLY }, //
preferredDevice, //
new int[] { nThreads })
.transferToHost(DataTransferMode.EVERY_EXECUTION, doubleAmplitudes, doubleDebug);
This API access is required by GAIA for the project AERO. We may also simplify this API in future versions, since the main purpose was for debugging, not for running production code.
Problem description
If the patch provides a fix for a bug, please describe what was the issue and how to reproduce the issue.
Backend/s tested
Mark the backends affected by this PR.
[ ] OpenCL
[X] PTX
[ ] SPIRV
OS tested
Mark the OS where this PR is tested.
[X] Linux
[ ] OSx
[ ] Windows
Did you check on FPGAs?
If it is applicable, check your changes on FPGAs.
[ ] Yes
[X] No
How to test the new patch?
This change has been tested in the GAIA code base.
Description
Extension of the prebuilt API to be able to load prebuilt kernels stored in JAR files.
Example:
This API access is required by GAIA for the project AERO. We may also simplify this API in future versions, since the main purpose was for debugging, not for running production code.
Problem description
If the patch provides a fix for a bug, please describe what was the issue and how to reproduce the issue.
Backend/s tested
Mark the backends affected by this PR.
OS tested
Mark the OS where this PR is tested.
Did you check on FPGAs?
If it is applicable, check your changes on FPGAs.
How to test the new patch?
This change has been tested in the GAIA code base.