| @@ -22,11 +22,11 @@ pipeline { | |||||
| agent { | agent { | ||||
| docker { | docker { | ||||
| image 'fnlp:torch-1.11' | image 'fnlp:torch-1.11' | ||||
| args '-u root:root -v ${JENKINS_HOME}/html/docs:/docs -v ${JENKINS_HOME}/html/_ci:/ci --gpus all' | |||||
| args '-u root:root -v ${JENKINS_HOME}/html/docs:/docs -v ${JENKINS_HOME}/html/_ci:/ci --gpus all --shm-size 256M' | |||||
| } | } | ||||
| } | } | ||||
| steps { | steps { | ||||
| sh 'pytest ./tests/ --durations=0 -m torch' | |||||
| sh 'pytest ./tests --durations=0 -m torch' | |||||
| } | } | ||||
| } | } | ||||
| stage('Test Torch-1.6') { | stage('Test Torch-1.6') { | ||||
| @@ -91,6 +91,8 @@ def _check_module(module): | |||||
| for backend in SUPPORT_BACKENDS: | for backend in SUPPORT_BACKENDS: | ||||
| if f'{os.sep}site-packages{os.sep}{backend}' in file: | if f'{os.sep}site-packages{os.sep}{backend}' in file: | ||||
| return backend | return backend | ||||
| if f'{os.sep}dist-packages{os.sep}{backend}' in file: | |||||
| return backend | |||||
| except: | except: | ||||
| pass | pass | ||||
| return None | return None | ||||