mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-04-20 06:49:15 +00:00
Groupnorm + swish external api (#668)
* Rename to proper naming * Add example of groupnorm + swish * Extract duplicate code in example * Add groupnorm + swish instances * Ractor instance generation, split into multiple cpp file * Add external api and client example * Refine profiler message * Use ck math version of exp * Refine problem size in example * Add host version of exp
This commit is contained in:
@@ -168,6 +168,10 @@ __device__ double exp<double>(double x)
|
||||
return exp(x);
|
||||
}
|
||||
|
||||
static inline __host__ float exp(float x) { return std::expf(x); }
|
||||
|
||||
static inline __host__ double exp(double x) { return std::exp(x); }
|
||||
|
||||
// greatest common divisor, aka highest common factor
|
||||
__host__ __device__ constexpr index_t gcd(index_t x, index_t y)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user