@@ -913,6 +913,88 @@ jobs:
913
913
- store_test_results :
914
914
path : test-results
915
915
916
+ unittest_windows_optdepts_cpu :
917
+ << : *binary_common
918
+ executor :
919
+ name : windows-cpu
920
+ steps :
921
+ - checkout
922
+ - designate_upload_channel
923
+ - run :
924
+ name : Generate cache key
925
+ # This will refresh cache on Sundays, nightly build should generate new cache.
926
+ command : echo "$(date +"%Y-%U")" > .circleci-weekly
927
+ - restore_cache :
928
+ keys :
929
+ - env-v2-windows-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/windows_optdepts/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
930
+
931
+ - run :
932
+ name : Setup
933
+ command : .circleci/unittest/windows_optdepts/scripts/setup_env.sh
934
+ - save_cache :
935
+ key : env-v2-windows-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/windows_optdepts/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
936
+
937
+ paths :
938
+ - conda
939
+ - env
940
+ - run :
941
+ name : Install torchrl
942
+ command : .circleci/unittest/windows_optdepts/scripts/install.sh
943
+ - run :
944
+ name : Run tests
945
+ command : .circleci/unittest/windows_optdepts/scripts/run_test.sh
946
+ - run :
947
+ name : Post process
948
+ command : .circleci/unittest/windows_optdepts/scripts/post_process.sh
949
+ - store_test_results :
950
+ path : test-results
951
+
952
+ unittest_windows_optdepts_gpu :
953
+ << : *binary_common
954
+ executor :
955
+ name : windows-gpu
956
+ environment :
957
+ CUDA_VERSION : " 11.6"
958
+ PYTHON_VERSION : << parameters.python_version >>
959
+ steps :
960
+ - checkout
961
+ - designate_upload_channel
962
+ - run :
963
+ name : Generate cache key
964
+ # This will refresh cache on Sundays, nightly build should generate new cache.
965
+ command : echo "$(date +"%Y-%U")" > .circleci-weekly
966
+ - restore_cache :
967
+ keys :
968
+ - env-v1-windows-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/windows_optdepts/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
969
+
970
+ - run :
971
+ name : Setup
972
+ command : .circleci/unittest/windows_optdepts/scripts/setup_env.sh
973
+ - save_cache :
974
+ key : env-v1-windows-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/windows_optdepts/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
975
+
976
+ paths :
977
+ - conda
978
+ - env
979
+ - run :
980
+ name : Install CUDA
981
+ command : packaging/windows/internal/cuda_install.bat
982
+ - run :
983
+ name : Update CUDA driver
984
+ command : packaging/windows/internal/driver_update.bat
985
+ - run :
986
+ name : Install torchrl
987
+ command : .circleci/unittest/windows_optdepts/scripts/install.sh
988
+ - run :
989
+ name : Run tests
990
+ command : .circleci/unittest/windows_optdepts/scripts/run_test.sh
991
+ - run :
992
+ name : Post process
993
+ command : .circleci/unittest/windows_optdepts/scripts/post_process.sh
994
+ - store_test_results :
995
+ path : test-results
996
+
997
+
916
998
workflows :
917
999
lint :
918
1000
jobs :
@@ -1173,3 +1255,36 @@ workflows:
1173
1255
cu_version : cu113
1174
1256
name : unittest_linux_examples_gpu_py3.9
1175
1257
python_version : ' 3.9'
1258
+
1259
+ - unittest_windows_optdepts_cpu :
1260
+ cu_version : cpu
1261
+ name : unittest_windows_optdepts_cpu_py3.7
1262
+ python_version : ' 3.7'
1263
+ - unittest_windows_optdepts_cpu :
1264
+ cu_version : cpu
1265
+ name : unittest_windows_optdepts_cpu_py3.8
1266
+ python_version : ' 3.8'
1267
+ - unittest_windows_optdepts_cpu :
1268
+ cu_version : cpu
1269
+ name : unittest_windows_optdepts_cpu_py3.9
1270
+ python_version : ' 3.9'
1271
+ - unittest_windows_optdepts_cpu :
1272
+ cu_version : cpu
1273
+ name : unittest_windows_optdepts_cpu_py3.10
1274
+ python_version : ' 3.10'
1275
+ - unittest_windows_optdepts_gpu :
1276
+ cu_version : cu116
1277
+ name : unittest_windows_optdepts_gpu_py3.7
1278
+ python_version : ' 3.7'
1279
+ - unittest_windows_optdepts_gpu :
1280
+ cu_version : cu116
1281
+ name : unittest_windows_optdepts_gpu_py3.8
1282
+ python_version : ' 3.8'
1283
+ - unittest_windows_optdepts_gpu :
1284
+ cu_version : cu116
1285
+ name : unittest_windows_optdepts_gpu_py3.9
1286
+ python_version : ' 3.9'
1287
+ - unittest_windows_optdepts_gpu :
1288
+ cu_version : cu116
1289
+ name : unittest_windows_optdepts_gpu_py3.10
1290
+ python_version : ' 3.10'
0 commit comments