webcl-translator icon indicating copy to clipboard operation
webcl-translator copied to clipboard

The validator is not called unless "-s CL_VAL_PARAM=" is given

Open hujiajie opened this issue 10 years ago • 1 comments

The README says

If you build a sample using settings -s CL_VALIDATOR=1, automaticaly all the .cl file embedded are modify by the validator. You can specify parameter to the webcl-validator using -s CL_VAL_PARAM='["-DPARAM1","-DPARAM2"]'.

This leads me to think that CL_VAL_PARAM is optional. But actually according to this line, the validator will not be called unless -s CL_VAL_PARAM='[""]' or -s CL_VAL_PARAM='["-DPARAM1","-DPARAM2"]' is given. The quote mark in [""] is not negligible either.

hujiajie avatar Dec 04 '14 07:12 hujiajie

Hi, I push a quick fix for support only -s CL_VALIDATOR=1 without -s CL_VAL_PARAM='[""]' Let me know if it's working for you.

wolfviking0 avatar Dec 04 '14 07:12 wolfviking0