tonyyxliu / CUHKSZ-CSC4005

Project Materials for CUHK(SZ) Course CSC4005: Parallel Programming
MIT License
79 stars 31 forks source link

Concerns about compilation flags #34

Closed EnderturtleOrz closed 1 year ago

EnderturtleOrz commented 1 year ago

When I implemented the code using SIMD, I got the following error when compiling because I used some special functions.

error: inlining failed in call to always_inline

An easy way to fix this bug is adding a compilation flag "-march=native". Are we allowed to use it?

If possible, could you provide a list of flags that can/cannot be used?

tonyyxliu commented 1 year ago

You can use any optimization flag / option you want, but you have to specify them out in the report that, how did these extra optimization work to speedup your program. In your case, please explain why you want to introduce those special functions for SIMD?