Intel Confidential Computing
Discussion board focused on Intel Confidential Computing technologies and how they can protect data and AI security, privacy, and sovereignty.

Running AMX instructions inside SGX Enclave

jk123
Beginner
2,157 Views

I am trying to execute an AMX instruction inside an SGX enclave. I am using RHEL 9.3. I have confirmed that I can run an AMX instruction outside of an enclave, but not inside it when initializing AMX outside of the enclave. Executing the enclaved code returns error code 0x1006. I can't reinitialize AMX inside the enclave because it requires a system call, and system calls are impossible inside an SGX enclave. Is there any way to run AMX inside an enclave? I have attached a minimal reproducible example.

It is based off the code here and here 

Labels (1)
0 Kudos
1 Solution
Scott_R_Intel
Moderator
2,142 Views

Hello.

 

Please see our latest SGX Developer Reference.  It talks about how to enable AMX in an enclave.


Regards.

View solution in original post

0 Kudos
1 Reply
Scott_R_Intel
Moderator
2,143 Views

Hello.

 

Please see our latest SGX Developer Reference.  It talks about how to enable AMX in an enclave.


Regards.

0 Kudos
Reply