Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
1216 Discussions

"clang-format" missing

User01
New Contributor II
481 Views

I am unable to find the "clang-format" command on Intel DevCloud nodes. It seems like something that should be included with the oneAPI compiler suite. This is needed for formatting source code consistently and would be of general use on DevCloud. See Contributing a New Sample · oneapi-src/oneAPI-samples Wiki (github.com) for a use case. If clang-format is already installed somewhere, please let me know where. If not, please request it to be installed on the system by the administrators.

The fastest work-around seems to be running "pip install clang-format" to just get it via clang-format · PyPI. Trying to bring it in via conda-forge seems like a bad idea as that triggers conda updating a number of additional packages that would deviate from the Intel Python already on the system.

0 Kudos
3 Replies
Rahila_T_Intel
Moderator
427 Views

Hi,

 

Thank you for posting in Intel Communities. 

 

Intel DevCloud® is a shared environment which comes with pre-installed validated Intel® oneAPI software and complimentary packages. As a policy we do not install custom (open source or 3rd party licensed) software to the environment and recommend that you explore available and equivalent oneAPI Software tools or components. You may be able to install software locally in your user folder using < > “pip install –user” (dash dash user switch allows you to install local in your home directory).

 

We tried to reproduce your issue in Intel Devcloud for oneAPI and we would like to provide you the steps that worked for us.

We recommend to create a new environment when installing. 

 

1) To create a python3 environment, do:

 

conda create -n <env_name> python=3.x

 

Please note that "x" in "python=3.x" should signify which version of Python* you would like to install.

 

2) After creating, you can activate that respective environment using

 

conda activate <env-name>

 

3) Now you can install clang-format with the below command:

 

 pip install clang-format

 

This would solve the conda triggers & python errors you are getting.

 

If this not resolve your issue, please let us know 

1) Which DevCloud (oneAPI DevCloud/ edge DevCloud/ FPGA DevCloud) you are using?

2) The Operating System on which you are trying out the same.

 

Thanks

 

Rahila_T_Intel
Moderator
368 Views

Hi,


We have not heard back from you. Is your issue resolved? Could you please give us an update ?


Thanks


Rahila_T_Intel
Moderator
347 Views

Hi,


We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.


Thanks


Reply