CHIP-SPV / chipStar

chipStar is a tool for compiling and running HIP/CUDA on SPIR-V via OpenCL or Level Zero APIs.
Other
227 stars 34 forks source link

update HIPCC to preserve ordering #899

Closed pvelesko closed 4 months ago

pvelesko commented 4 months ago

Fixes #898

TODO:

pvelesko commented 4 months ago

@jjennychen please check this PR. Make sure to git submodule update once you checkout

jjennychen commented 4 months ago

@pvelesko Just tested, works perfectly! Thanks a lot!! Here is the ordering that I got from this PR (for your reference):

/home/tsaini.chen/install/llvm/17.0/bin/clang++ -include /home/tsaini.chen/install/chipStar/test_ordering/include/hip/spirv_fixups.h -I//home/tsaini.chen/install/chipStar/test_ordering/include -isystem /home/tsaini.chen/install/chipStar/test_ordering/include/cuspv -include /home/tsaini.chen/install/chipStar/test_ordering/include/cuspv/cuda_runtime.h -D__NVCC__ -D__CHIP_CUDA_COMPATIBILITY__ -std=c++14 -Wall -Ddfloat=float -Ddlong=int -O3 -lgfortran main.o meshBasis.o BlasLapack/libBlasLapack.a BlasLapack/libBlasLapack.a -o main -L/home/tsaini.chen/install/chipStar/test_ordering/lib -lCHIP -no-hip-rt -locml_host_math_funcs -Wl,-rpath,/home/tsaini.chen/install/chipStar/test_ordering/lib