webcl-translator
webcl-translator copied to clipboard
The validator is not called unless "-s CL_VAL_PARAM=" is given
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.
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.