SYCLomatic icon indicating copy to clipboard operation
SYCLomatic copied to clipboard

Add a utility sycl-mapping-APIs-scanner.py to scan codes and list non… Resolve oneapi-src/SYCLomatic#1452

Open Joel-lin opened this issue 1 year ago • 1 comments

Add a utility sycl-mapping-APIs-scanner.py to scan codes and list non-migrated APIs in candidate SYCL migration project.

Joel-lin avatar Nov 29 '23 05:11 Joel-lin

Suggest to move the *.py scripts and readme doc to https://github.com/oneapi-src/SYCLomatic/tree/SYCLomatic/clang/tools/symbol-scanner folder.

It's related to SYCLomatic/clang/tools/dpct/generate_api_migration_status.py which generates .csv files and .csv files generates [api_migration_status_arrays.py] so that is one reason I think this is the folder.

unlike symbol scanner requires pre-installing 3rd-party software, the utility sycl-mapping-APIs-scanner.py does not require any dependencies on other 3rd-party software or headers.

This proposed utility serves a specific purpose to help DPCT/SYCLomatic users review what SYCLomatic-unsupported CUDA APIs used in their projects by scanning their projects codes directly.

It is to save the time of preparing the build environment, like build headers files or project-dependent software and then later find out the unsupported/non-migrated CUDA APIs were the technical problems they needed to focus. With this utility, users can focus on what they are eventually going to focus on after a one-time code scan. This is another reason we may consider merging with the main program c2s or leave this with the main program together. Please take a consideration. Thanks.

Joel-lin avatar Nov 30 '23 09:11 Joel-lin