Skip to content

Instantly share code, notes, and snippets.

@renxida
Created January 11, 2024 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renxida/4088c400006643bb91b98625147fdf44 to your computer and use it in GitHub Desktop.
Save renxida/4088c400006643bb91b98625147fdf44 to your computer and use it in GitHub Desktop.
// torch-mlir/.vscode/settings.json
{
"files.associations": {
"*.inc": "cpp",
"ranges": "cpp",
"regex": "cpp",
"functional": "cpp",
"chrono": "cpp",
"__functional_03": "cpp",
"target": "cpp",
"fstream": "cpp",
"*.def": "cpp",
"__config": "cpp",
"memory": "cpp"
},
"cmake.sourceDirectory": ["/home/azureuser/torch-mlir/externals/llvm-project/llvm"],
"cmake.buildDirectory": "${workspaceFolder}/build",
"cmake.generator": "Ninja",
"cmake.configureArgs": [
"-DLLVM_ENABLE_PROJECTS=mlir",
"-DLLVM_EXTERNAL_PROJECTS=\"torch-mlir\"",
"-DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR=\"/home/azureuser/torch-mlir\"",
"-DCMAKE_BUILD_TYPE=Debug",
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
"-DCMAKE_CXX_COMPILER_LAUNCHER=ccache",
"-DLLVM_ENABLE_PROJECTS=mlir",
"-DLLVM_EXTERNAL_PROJECTS=torch-mlir;torch-mlir-dialects",
"-DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR=${workspaceFolder}",
"-DLLVM_EXTERNAL_TORCH_MLIR_DIALECTS_SOURCE_DIR=${workspaceFolder}/externals/llvm-external-projects/torch-mlir-dialects",
"-DMLIR_ENABLE_BINDINGS_PYTHON=ON",
"-DLLVM_ENABLE_ASSERTIONS=ON",
"-DLLVM_TARGETS_TO_BUILD=host",
"-DCMAKE_C_COMPILER=clang",
"-DCMAKE_CXX_COMPILER=clang++",
],
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
"cmake.configureEnvironment": {
"PATH": "/home/azureuser/miniconda/bin:/home/azureuser/miniconda/condabin:/home/azureuser/miniconda/bin:/home/azureuser/miniconda/bin:/home/azureuser/miniconda/condabin:/home/azureuser/miniconda/bin:/home/azureuser/miniconda/bin:/home/azureuser/miniconda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
},
"cmake.cmakePath": "/home/azureuser/miniconda/bin/cmake", // make sure this is a cmake that knows where your python is
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment