srkreddy1238 commented on PR #18523:
URL: https://github.com/apache/tvm/pull/18523#issuecomment-3640683189

   > Q not related directly to this PR, sorry. Can TVM and Adreno flow be 
compiled/executed on Snapdragon X1? Windows/Linux?
   
   Yes. It works on Snapdragon laptops (X Elite) with both arm64 (Arm64 need 
Qualcomm Arm64 OpenCL SDK) and x64 (Generic OpenCL works w/o CLML enabled) 
compilations.
   
   Sample config
   
   ```
              cp ../cmake/config.cmake .
              Add-Content config.cmake "set(USE_OPENCL 
$ENV:OPENCL_SDK_ADRENO_X86)"
              Add-Content config.cmake "set(USE_LLVM $ENV:LLVM_CONFIG)"
              Add-Content config.cmake "set(USE_CLML 
$ENV:OPENCL_SDK_ADRENO_X86)"
              Add-Content config.cmake "set(USE_RPC ON)"
              Add-Content config.cmake "set(USE_CPP_RPC ON)"
              Add-Content config.cmake "set(USE_KALLOC_ALIGNMENT 32)"
              Add-Content config.cmake "set(USE_OPENCL_EXTN_QCOM ON)"
              cmake .. -G "Visual Studio 17 2022" -A x64
              cmake --build . --config Release --parallel 
$env:NUMBER_OF_PROCESSORS
   ```
   
   ```
              cd build-arm64
              cp ../cmake/config.cmake .
              Add-Content config.cmake "set(USE_OPENCL 
$ENV:OPENCL_SDK_ADRENO_ARM64)"
              Add-Content config.cmake "set(USE_CLML 
$ENV:OPENCL_SDK_ADRENO_ARM64)"
              Add-Content config.cmake "set(USE_RPC ON)"
              Add-Content config.cmake "set(USE_CPP_RPC ON)"
              Add-Content config.cmake "set(USE_KALLOC_ALIGNMENT 32)"
              Add-Content config.cmake "set(USE_OPENCL_EXTN_QCOM ON)"
              cmake .. -G "Visual Studio 17 2022" -A ARM64
              cmake --build . --config Release --parallel 
$env:NUMBER_OF_PROCESSORS --target tvm_rpc
   ```
   
   mlc-llm too works.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to