Merge pull request #1152 from asalmanp/hip_as_b
Header change for new hip API hipExtLaunchMultiKernelMultiDevice
This commit is contained in:
commit
ef87f7eaef
1 file changed
+21
@@ -2906,6 +2906,21 @@ hipError_t hipOccupancyMaxActiveBlocksPerMultiprocessor(
|
|||||||
hipError_t hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(
|
hipError_t hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(
|
||||||
int* numBlocks, const void* f, int blockSize, size_t dynamicSMemSize, unsigned int flags);
|
int* numBlocks, const void* f, int blockSize, size_t dynamicSMemSize, unsigned int flags);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Launches kernels on multiple devices and guarantees all specified kernels are dispatched
|
||||||
|
* on respective streams before enqueuing any other work on the specified streams from any other threads
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @param [in] hipLaunchParams List of launch parameters, one per device.
|
||||||
|
* @param [in] numDevices Size of the launchParamsList array.
|
||||||
|
* @param [in] flags Flags to control launch behavior.
|
||||||
|
*
|
||||||
|
* @returns hipSuccess, hipInvalidDevice, hipErrorNotInitialized, hipErrorInvalidValue
|
||||||
|
*/
|
||||||
|
hipError_t hipExtLaunchMultiKernelMultiDevice(hipLaunchParams* launchParamsList,
|
||||||
|
int numDevices, unsigned int flags);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// doxygen end Version Management
|
// doxygen end Version Management
|
||||||
/**
|
/**
|
||||||
@@ -3262,6 +3277,12 @@ inline hipError_t hipLaunchCooperativeKernelMultiDevice(hipLaunchParams* launchP
|
|||||||
return hipLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags);
|
return hipLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
inline hipError_t hipExtLaunchMultiKernelMultiDevice(hipLaunchParams* launchParamsList,
|
||||||
|
unsigned int numDevices, unsigned int flags = 0) {
|
||||||
|
return hipExtLaunchMultiKernelMultiDevice(launchParamsList, numDevices, flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @brief Unbinds the textuer bound to @p tex
|
* @brief Unbinds the textuer bound to @p tex
|
||||||
|
|||||||
Reference in new issue
Block a user