---
title: 调用约束
description: 线程函数的调用顺序约束：
url: "https://www.hikunpeng.com/document/detail/zh/hpchistory/hpckit/develop240RC1/kunpengaccel_kml_16_0191.html"
---

# 调用约束

线程函数的调用顺序约束：

1. 首先调用  kml_fft(f)_init_threads
初始化线程的使用。
2. 然后调用  kml_fft(f)_plan_with_nthreads
指定线程数。
3. 最后调用  kml_fft(f)_cleanup_threads
释放多线程框架相关的资源。
