In [1]:
# Import Collective Knowledge Engine
import ck.kernel as ck
print ('CK version: %s' % ck.__version__)
In [3]:
# Compile NAS CG
r=ck.access({'action':'compile',
'module_uoa':'program',
'data_uoa':'nas-cg',
'speed':'yes',
'env.CK_COMPILE_TYPE':'auto'})
if r['return']>0:
ck.err(r)
exit(1)
In [ ]:
# Run NAS CG
r=ck.access({'action':'run',
'module_uoa':'program',
'data_uoa':'nas-cg'})
if r['return']>0:
ck.err(r)
exit(1)
In [4]:
# Print CK output
import json
print (json.dumps(r, indent=2))
In [ ]: