---
title: aclprofStr2Id
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/latest/API/runtimeapi/aclcppdevg_03_2142.html
sourcePath: /source/zh/CANNCommunityEdition/920beta1/API/runtimeapi/aclcppdevg_03_2142.html
indexId: 67e7c88de9e069244a7fc3cb3aa6856aab67fb3c9189263caa03e6eccf4c36e779
---
# aclprofStr2Id

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Ascend 950PR / Ascend 950DT | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |


#### 功能说明

msproftx用于将字符串转换为哈希ID。


#### 函数原型

```
uint64_t aclprofStr2Id(const char *message)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| message | 输入 | 字符信息，例如算子名。 |


#### 返回值说明

返回哈希ID，如果是uint64_t类型的最大值则表示失败，其他表示成功。


#### 约束说明

与aclprofRangePushEx和aclprofRangePop接口配合使用，在aclprofRangePushEx接口调用之前调用。
