| | | | | | | | | | | | | | | | | | | | | |
<?xml version="1.0" encoding="windows-1252"?> |
<!-- Created by Merrill Corporation --> |
<!-- XBRL document created with Merrill Bridge 7.3.329.0 --> |
<!-- Based on XBRL 2.1 --> |
<!-- Created on: 10/28/2017 1:54:31 AM --> |
<!-- Modified on: 10/28/2017 1:54:32 AM --> |
<linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#StatementConsolidatedBalanceSheets" roleURI="http://www.spisolar.com/role/StatementConsolidatedBalanceSheets"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#StatementConsolidatedStatementsOfOperations" roleURI="http://www.spisolar.com/role/StatementConsolidatedStatementsOfOperations"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#StatementConsolidatedStatementsOfComprehensiveLoss" roleURI="http://www.spisolar.com/role/StatementConsolidatedStatementsOfComprehensiveLoss"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#StatementConsolidatedStatementsOfCashFlows" roleURI="http://www.spisolar.com/role/StatementConsolidatedStatementsOfCashFlows"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureDescriptionOfBusinessAndOrganizationVariableInterestEntitiesDetails" roleURI="http://www.spisolar.com/role/DisclosureDescriptionOfBusinessAndOrganizationVariableInterestEntitiesDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureSummaryOfSignificantAccountingPoliciesCapitalizedInterestDetails" roleURI="http://www.spisolar.com/role/DisclosureSummaryOfSignificantAccountingPoliciesCapitalizedInterestDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureAccountsReceivableAgeingOfAccountsReceivableDetails" roleURI="http://www.spisolar.com/role/DisclosureAccountsReceivableAgeingOfAccountsReceivableDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureInventoriesDetails" roleURI="http://www.spisolar.com/role/DisclosureInventoriesDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureProjectAssetsScheduleDetails" roleURI="http://www.spisolar.com/role/DisclosureProjectAssetsScheduleDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosurePrepaidExpensesAndOtherCurrentAssetsSummaryOfPrepaidExpensesAndOtherCurrentAssetsDetails" roleURI="http://www.spisolar.com/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsSummaryOfPrepaidExpensesAndOtherCurrentAssetsDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureProjectAssetsSummaryOfProjectAssetsDetailsCalc2" roleURI="http://www.spisolar.com/role/DisclosureProjectAssetsSummaryOfProjectAssetsDetailsCalc2"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureFinanceLeaseReceivablesScheduleOfFinanceLeaseReceivablesDetails" roleURI="http://www.spisolar.com/role/DisclosureFinanceLeaseReceivablesScheduleOfFinanceLeaseReceivablesDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureFinanceLeaseReceivablesScheduleOfFutureMaturitiesOfMinimumLeasePaymentsReceivableDetails" roleURI="http://www.spisolar.com/role/DisclosureFinanceLeaseReceivablesScheduleOfFutureMaturitiesOfMinimumLeasePaymentsReceivableDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosurePropertyPlantAndEquipmentDetails" roleURI="http://www.spisolar.com/role/DisclosurePropertyPlantAndEquipmentDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureFinanceLeaseReceivablesScheduleOfFinanceLeaseReceivableDetailsCalc2" roleURI="http://www.spisolar.com/role/DisclosureFinanceLeaseReceivablesScheduleOfFinanceLeaseReceivableDetailsCalc2"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureFairValueMeasurementCarryingAmountsAndEstimatedFairValuesOfFinancialInstrumentsDetails" roleURI="http://www.spisolar.com/role/DisclosureFairValueMeasurementCarryingAmountsAndEstimatedFairValuesOfFinancialInstrumentsDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureAccruedLiabilitiesDetails" roleURI="http://www.spisolar.com/role/DisclosureAccruedLiabilitiesDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureShortTermBorrowingsAndLongTermBorrowingsScheduleDetailsCalc2" roleURI="http://www.spisolar.com/role/DisclosureShortTermBorrowingsAndLongTermBorrowingsScheduleDetailsCalc2"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureShortTermBorrowingsAndLongTermBorrowingsScheduleDetailsCalc3" roleURI="http://www.spisolar.com/role/DisclosureShortTermBorrowingsAndLongTermBorrowingsScheduleDetailsCalc3"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureShortTermBorrowingsAndLongTermBorrowingsScheduleDetailsCalc4" roleURI="http://www.spisolar.com/role/DisclosureShortTermBorrowingsAndLongTermBorrowingsScheduleDetailsCalc4"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureShortTermBorrowingsAndLongTermBorrowingsScheduleDetails" roleURI="http://www.spisolar.com/role/DisclosureShortTermBorrowingsAndLongTermBorrowingsScheduleDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureOtherLiabilitiesScheduleDetails" roleURI="http://www.spisolar.com/role/DisclosureOtherLiabilitiesScheduleDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureGoodwillAndOtherIntangibleAssetsOtherIntangibleAssetsDetails" roleURI="http://www.spisolar.com/role/DisclosureGoodwillAndOtherIntangibleAssetsOtherIntangibleAssetsDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureGoodwillAndOtherIntangibleAssetsFutureAmortizationExpenseDetails" roleURI="http://www.spisolar.com/role/DisclosureGoodwillAndOtherIntangibleAssetsFutureAmortizationExpenseDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureStockBasedCompensationCompensationExpenseByLineItemDetails" roleURI="http://www.spisolar.com/role/DisclosureStockBasedCompensationCompensationExpenseByLineItemDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureImpairmentChargesDetails" roleURI="http://www.spisolar.com/role/DisclosureImpairmentChargesDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureIncomeTaxesLossBeforeProvisionForIncomeTaxesByGeographicLocationsDetails" roleURI="http://www.spisolar.com/role/DisclosureIncomeTaxesLossBeforeProvisionForIncomeTaxesByGeographicLocationsDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureIncomeTaxesProvisionForIncomeTaxesDetails" roleURI="http://www.spisolar.com/role/DisclosureIncomeTaxesProvisionForIncomeTaxesDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureIncomeTaxesReconciliationBetweenActualIncomeTaxExpenseAndIncomeTaxDetails" roleURI="http://www.spisolar.com/role/DisclosureIncomeTaxesReconciliationBetweenActualIncomeTaxExpenseAndIncomeTaxDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureIncomeTaxesDeferredIncomeTaxesDetails" roleURI="http://www.spisolar.com/role/DisclosureIncomeTaxesDeferredIncomeTaxesDetails"/> |
| <roleRef xlink:type="simple" xlink:href="spi-20161231.xsd#DisclosureCommitmentsAndContingenciesOperatingLeasesDetails" roleURI="http://www.spisolar.com/role/DisclosureCommitmentsAndContingenciesOperatingLeasesDetails"/> |
| <calculationLink xlink:role="http://www.spisolar.com/role/StatementConsolidatedBalanceSheets" xlink:type="extended" xlink:title="00100 - Statement - CONSOLIDATED BALANCE SHEETS"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Assets" xlink:label="Assets"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="us-gaap_AssetsCurrent_636447524627542991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_AssetsCurrent_636447524627542991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="us-gaap_CashAndCashEquivalentsAtCarryingValue_636447524627552991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_636447524627542991" xlink:to="us-gaap_CashAndCashEquivalentsAtCarryingValue_636447524627552991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue" xlink:label="us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_636447524627552991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_636447524627542991" xlink:to="us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_636447524627552991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="us-gaap_AccountsReceivableNetCurrent_636447524627552991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_636447524627542991" xlink:to="us-gaap_AccountsReceivableNetCurrent_636447524627552991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableRelatedPartiesCurrent" xlink:label="us-gaap_AccountsReceivableRelatedPartiesCurrent_636447524627552991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_636447524627542991" xlink:to="us-gaap_AccountsReceivableRelatedPartiesCurrent_636447524627552991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NotesReceivableNet" xlink:label="us-gaap_NotesReceivableNet_636447524627552991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_636447524627542991" xlink:to="us-gaap_NotesReceivableNet_636447524627552991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CostsInExcessOfBillingsOnUncompletedContractsOrProgramsExpectedToBeCollectedWithinOneYear" xlink:label="us-gaap_CostsInExcessOfBillingsOnUncompletedContractsOrProgramsExpectedToBeCollectedWithinOneYear_636447524627552991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_636447524627542991" xlink:to="us-gaap_CostsInExcessOfBillingsOnUncompletedContractsOrProgramsExpectedToBeCollectedWithinOneYear_636447524627552991" order="6" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryNet" xlink:label="us-gaap_InventoryNet_636447524627552991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_636447524627542991" xlink:to="us-gaap_InventoryNet_636447524627552991" order="7" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_ProjectAssetsCurrent" xlink:label="spi_ProjectAssetsCurrent_636447524627552991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_636447524627542991" xlink:to="spi_ProjectAssetsCurrent_636447524627552991" order="8" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="us-gaap_PrepaidExpenseAndOtherAssetsCurrent_636447524627552991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_636447524627542991" xlink:to="us-gaap_PrepaidExpenseAndOtherAssetsCurrent_636447524627552991" order="9" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DueFromRelatedPartiesCurrent" xlink:label="us-gaap_DueFromRelatedPartiesCurrent_636447524627552991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_636447524627542991" xlink:to="us-gaap_DueFromRelatedPartiesCurrent_636447524627552991" order="10" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasesLessorBalanceSheetNetInvestmentInDirectFinancingLeasesCurrent" xlink:label="us-gaap_CapitalLeasesLessorBalanceSheetNetInvestmentInDirectFinancingLeasesCurrent_636447524627612991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_636447524627542991" xlink:to="us-gaap_CapitalLeasesLessorBalanceSheetNetInvestmentInDirectFinancingLeasesCurrent_636447524627612991" order="11" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="us-gaap_IntangibleAssetsNetExcludingGoodwill_636447524627612991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_IntangibleAssetsNetExcludingGoodwill_636447524627612991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="us-gaap_Goodwill_636447524627612991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_Goodwill_636447524627612991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableNetNoncurrent" xlink:label="us-gaap_AccountsReceivableNetNoncurrent_636447524627612991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_AccountsReceivableNetNoncurrent_636447524627612991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NontradeReceivablesNoncurrent" xlink:label="us-gaap_NontradeReceivablesNoncurrent_636447524627612991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_NontradeReceivablesNoncurrent_636447524627612991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NotesAndLoansReceivableNetNoncurrent" xlink:label="us-gaap_NotesAndLoansReceivableNetNoncurrent_636447524627622991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_NotesAndLoansReceivableNetNoncurrent_636447524627622991" order="6" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="us-gaap_PropertyPlantAndEquipmentNet_636447524627622991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_PropertyPlantAndEquipmentNet_636447524627622991" order="7" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_ProjectAssetsNoncurrent" xlink:label="spi_ProjectAssetsNoncurrent_636447524627622991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="spi_ProjectAssetsNoncurrent_636447524627622991" order="8" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeAssetsNoncurrent" xlink:label="us-gaap_DerivativeAssetsNoncurrent_636447524627622991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_DerivativeAssetsNoncurrent_636447524627622991" order="9" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityMethodInvestments" xlink:label="us-gaap_EquityMethodInvestments_636447524627622991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_EquityMethodInvestments_636447524627622991" order="10" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsNetNoncurrent" xlink:label="us-gaap_DeferredTaxAssetsNetNoncurrent_636447524627622991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_DeferredTaxAssetsNetNoncurrent_636447524627622991" order="11" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasesLessorBalanceSheetNetInvestmentInDirectFinancingLeasesNoncurrent" xlink:label="us-gaap_CapitalLeasesLessorBalanceSheetNetInvestmentInDirectFinancingLeasesNoncurrent_636447524627622991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_CapitalLeasesLessorBalanceSheetNetInvestmentInDirectFinancingLeasesNoncurrent_636447524627622991" order="12" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="LiabilitiesAndStockholdersEquity"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Liabilities" xlink:label="us-gaap_Liabilities_636447524627622991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="us-gaap_Liabilities_636447524627622991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="us-gaap_LiabilitiesCurrent_636447524627622991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_636447524627622991" xlink:to="us-gaap_LiabilitiesCurrent_636447524627622991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="us-gaap_AccountsPayableCurrent_636447524627632991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_636447524627622991" xlink:to="us-gaap_AccountsPayableCurrent_636447524627632991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsPayableRelatedPartiesCurrent" xlink:label="us-gaap_AccountsPayableRelatedPartiesCurrent_636447524627632991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_636447524627622991" xlink:to="us-gaap_AccountsPayableRelatedPartiesCurrent_636447524627632991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NotesPayableCurrent" xlink:label="us-gaap_NotesPayableCurrent_636447524627632991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_636447524627622991" xlink:to="us-gaap_NotesPayableCurrent_636447524627632991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="us-gaap_AccruedLiabilitiesCurrent_636447524627632991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_636447524627622991" xlink:to="us-gaap_AccruedLiabilitiesCurrent_636447524627632991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccruedIncomeTaxesCurrent" xlink:label="us-gaap_AccruedIncomeTaxesCurrent_636447524627632991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_636447524627622991" xlink:to="us-gaap_AccruedIncomeTaxesCurrent_636447524627632991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerAdvancesCurrent" xlink:label="us-gaap_CustomerAdvancesCurrent_636447524627632991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_636447524627622991" xlink:to="us-gaap_CustomerAdvancesCurrent_636447524627632991" order="6" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtCurrent" xlink:label="us-gaap_DebtCurrent_636447524627632991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_636447524627622991" xlink:to="us-gaap_DebtCurrent_636447524627632991" order="7" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConvertibleDebtCurrent" xlink:label="us-gaap_ConvertibleDebtCurrent_636447524627632991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_636447524627622991" xlink:to="us-gaap_ConvertibleDebtCurrent_636447524627632991" order="8" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DueToOtherRelatedPartiesClassifiedCurrent" xlink:label="us-gaap_DueToOtherRelatedPartiesClassifiedCurrent_636447524627632991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_636447524627622991" xlink:to="us-gaap_DueToOtherRelatedPartiesClassifiedCurrent_636447524627632991" order="9" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeaseObligationsCurrent" xlink:label="us-gaap_CapitalLeaseObligationsCurrent_636447524627632991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_636447524627622991" xlink:to="us-gaap_CapitalLeaseObligationsCurrent_636447524627632991" order="10" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherLiabilitiesCurrent" xlink:label="us-gaap_OtherLiabilitiesCurrent_636447524627642991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_636447524627622991" xlink:to="us-gaap_OtherLiabilitiesCurrent_636447524627642991" order="11" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeaseObligationsNoncurrent" xlink:label="us-gaap_CapitalLeaseObligationsNoncurrent_636447524627642991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_636447524627622991" xlink:to="us-gaap_CapitalLeaseObligationsNoncurrent_636447524627642991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="us-gaap_LongTermDebtNoncurrent_636447524627642991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_636447524627622991" xlink:to="us-gaap_LongTermDebtNoncurrent_636447524627642991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxLiabilitiesNoncurrent" xlink:label="us-gaap_DeferredTaxLiabilitiesNoncurrent_636447524627642991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_636447524627622991" xlink:to="us-gaap_DeferredTaxLiabilitiesNoncurrent_636447524627642991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="us-gaap_OtherLiabilitiesNoncurrent_636447524627642991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_636447524627622991" xlink:to="us-gaap_OtherLiabilitiesNoncurrent_636447524627642991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LossContingencyAccrualAtCarryingValue" xlink:label="us-gaap_LossContingencyAccrualAtCarryingValue_636447524627642991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_636447524627622991" xlink:to="us-gaap_LossContingencyAccrualAtCarryingValue_636447524627642991" order="6" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_636447524627652991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_636447524627652991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="us-gaap_StockholdersEquity_636447524627652991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_636447524627652991" xlink:to="us-gaap_StockholdersEquity_636447524627652991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockValueOutstanding" xlink:label="us-gaap_CommonStockValueOutstanding_636447524627652991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_636447524627652991" xlink:to="us-gaap_CommonStockValueOutstanding_636447524627652991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdditionalPaidInCapitalCommonStock" xlink:label="us-gaap_AdditionalPaidInCapitalCommonStock_636447524627652991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_636447524627652991" xlink:to="us-gaap_AdditionalPaidInCapitalCommonStock_636447524627652991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_636447524627652991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_636447524627652991" xlink:to="us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_636447524627652991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="us-gaap_RetainedEarningsAccumulatedDeficit_636447524627652991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_636447524627652991" xlink:to="us-gaap_RetainedEarningsAccumulatedDeficit_636447524627652991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinorityInterest" xlink:label="us-gaap_MinorityInterest_636447524627652991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_636447524627652991" xlink:to="us-gaap_MinorityInterest_636447524627652991" order="2" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/StatementConsolidatedStatementsOfOperations" xlink:type="extended" xlink:title="00200 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="NetIncomeLoss"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProfitLoss" xlink:label="us-gaap_ProfitLoss_636447524627662991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetIncomeLoss" xlink:to="us-gaap_ProfitLoss_636447524627662991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_636447524627662991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_ProfitLoss_636447524627662991" xlink:to="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_636447524627662991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="us-gaap_OperatingIncomeLoss_636447524627662991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_636447524627662991" xlink:to="us-gaap_OperatingIncomeLoss_636447524627662991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GrossProfit" xlink:label="us-gaap_GrossProfit_636447524627662991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingIncomeLoss_636447524627662991" xlink:to="us-gaap_GrossProfit_636447524627662991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SalesRevenueNet" xlink:label="us-gaap_SalesRevenueNet_636447524627662991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_GrossProfit_636447524627662991" xlink:to="us-gaap_SalesRevenueNet_636447524627662991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold" xlink:label="us-gaap_CostOfGoodsAndServicesSold_636447524627662991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_GrossProfit_636447524627662991" xlink:to="us-gaap_CostOfGoodsAndServicesSold_636447524627662991" order="2" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CostOfGoodsSold" xlink:label="us-gaap_CostOfGoodsSold_636447524627662991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_CostOfGoodsAndServicesSold_636447524627662991" xlink:to="us-gaap_CostOfGoodsSold_636447524627662991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LossOnContracts" xlink:label="us-gaap_LossOnContracts_636447524627662991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_CostOfGoodsAndServicesSold_636447524627662991" xlink:to="us-gaap_LossOnContracts_636447524627662991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingExpenses" xlink:label="us-gaap_OperatingExpenses_636447524627662991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingIncomeLoss_636447524627662991" xlink:to="us-gaap_OperatingExpenses_636447524627662991" order="2" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="us-gaap_GeneralAndAdministrativeExpense_636447524627662991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingExpenses_636447524627662991" xlink:to="us-gaap_GeneralAndAdministrativeExpense_636447524627662991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SellingAndMarketingExpense" xlink:label="us-gaap_SellingAndMarketingExpense_636447524627662991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingExpenses_636447524627662991" xlink:to="us-gaap_SellingAndMarketingExpense_636447524627662991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProvisionForDoubtfulAccounts" xlink:label="us-gaap_ProvisionForDoubtfulAccounts_636447524627662991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingExpenses_636447524627662991" xlink:to="us-gaap_ProvisionForDoubtfulAccounts_636447524627662991" order="3" use="optional" weight="1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_FinanceLeaseImpairmentLoss" xlink:label="spi_FinanceLeaseImpairmentLoss_636447524627662991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingExpenses_636447524627662991" xlink:to="spi_FinanceLeaseImpairmentLoss_636447524627662991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment" xlink:label="us-gaap_GoodwillAndIntangibleAssetImpairment_636447524627662991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingExpenses_636447524627662991" xlink:to="us-gaap_GoodwillAndIntangibleAssetImpairment_636447524627662991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairmentOfLongLivedAssetsHeldForUse" xlink:label="us-gaap_ImpairmentOfLongLivedAssetsHeldForUse_636447524627662991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingExpenses_636447524627662991" xlink:to="us-gaap_ImpairmentOfLongLivedAssetsHeldForUse_636447524627662991" order="6" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_ImpairmentOfProjectAssets" xlink:label="spi_ImpairmentOfProjectAssets_636447524627672991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingExpenses_636447524627662991" xlink:to="spi_ImpairmentOfProjectAssets_636447524627672991" order="7" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NonoperatingIncomeExpense" xlink:label="us-gaap_NonoperatingIncomeExpense_636447524627672991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_636447524627662991" xlink:to="us-gaap_NonoperatingIncomeExpense_636447524627672991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestCostsIncurred" xlink:label="us-gaap_InterestCostsIncurred_636447524627672991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NonoperatingIncomeExpense_636447524627672991" xlink:to="us-gaap_InterestCostsIncurred_636447524627672991" order="1" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InvestmentIncomeInterest" xlink:label="us-gaap_InvestmentIncomeInterest_636447524627672991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NonoperatingIncomeExpense_636447524627672991" xlink:to="us-gaap_InvestmentIncomeInterest_636447524627672991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt" xlink:label="us-gaap_GainsLossesOnExtinguishmentOfDebt_636447524627672991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NonoperatingIncomeExpense_636447524627672991" xlink:to="us-gaap_GainsLossesOnExtinguishmentOfDebt_636447524627672991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNet" xlink:label="us-gaap_DerivativeGainLossOnDerivativeNet_636447524627672991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NonoperatingIncomeExpense_636447524627672991" xlink:to="us-gaap_DerivativeGainLossOnDerivativeNet_636447524627672991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromEquityMethodInvestments" xlink:label="us-gaap_IncomeLossFromEquityMethodInvestments_636447524627672991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NonoperatingIncomeExpense_636447524627672991" xlink:to="us-gaap_IncomeLossFromEquityMethodInvestments_636447524627672991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ForeignCurrencyTransactionGainLossBeforeTax" xlink:label="us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_636447524627672991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NonoperatingIncomeExpense_636447524627672991" xlink:to="us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_636447524627672991" order="6" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="us-gaap_OtherNonoperatingIncomeExpense_636447524627672991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NonoperatingIncomeExpense_636447524627672991" xlink:to="us-gaap_OtherNonoperatingIncomeExpense_636447524627672991" order="7" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="us-gaap_IncomeTaxExpenseBenefit_636447524627672991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_ProfitLoss_636447524627662991" xlink:to="us-gaap_IncomeTaxExpenseBenefit_636447524627672991" order="2" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_636447524627672991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="NetIncomeLoss" xlink:to="us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_636447524627672991" order="2" use="optional" weight="-1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/StatementConsolidatedStatementsOfComprehensiveLoss" xlink:type="extended" xlink:title="00300 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE LOSS"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="ComprehensiveIncomeNetOfTax"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:label="us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_636447524627682991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ComprehensiveIncomeNetOfTax" xlink:to="us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_636447524627682991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProfitLoss" xlink:label="us-gaap_ProfitLoss_636447524627682991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_636447524627682991" xlink:to="us-gaap_ProfitLoss_636447524627682991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax" xlink:label="us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_636447524627682991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_636447524627682991" xlink:to="us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_636447524627682991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest" xlink:label="us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_636447524627682991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ComprehensiveIncomeNetOfTax" xlink:to="us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_636447524627682991" order="2" use="optional" weight="-1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/StatementConsolidatedStatementsOfCashFlows" xlink:type="extended" xlink:title="00500 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:label="CashAndCashEquivalentsPeriodIncreaseDecrease"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:to="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProfitLoss" xlink:label="us-gaap_ProfitLoss_636447524627682991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_ProfitLoss_636447524627682991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Depreciation" xlink:label="us-gaap_Depreciation_636447524627682991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_Depreciation_636447524627682991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="us-gaap_AmortizationOfIntangibleAssets_636447524627682991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_AmortizationOfIntangibleAssets_636447524627682991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryWriteDown" xlink:label="us-gaap_InventoryWriteDown_636447524627682991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_InventoryWriteDown_636447524627682991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProvisionForDoubtfulAccounts" xlink:label="us-gaap_ProvisionForDoubtfulAccounts_636447524627682991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_ProvisionForDoubtfulAccounts_636447524627682991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_FinanceLeaseImpairmentLoss" xlink:label="spi_FinanceLeaseImpairmentLoss_636447524627682991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="spi_FinanceLeaseImpairmentLoss_636447524627682991" order="6" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairmentOfIntangibleAssetsFinitelived" xlink:label="us-gaap_ImpairmentOfIntangibleAssetsFinitelived_636447524627682991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_ImpairmentOfIntangibleAssetsFinitelived_636447524627682991" order="7" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairmentOfLongLivedAssetsHeldForUse" xlink:label="us-gaap_ImpairmentOfLongLivedAssetsHeldForUse_636447524627682991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_ImpairmentOfLongLivedAssetsHeldForUse_636447524627682991" order="8" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_ImpairmentOfProjectAssets" xlink:label="spi_ImpairmentOfProjectAssets_636447524627682991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="spi_ImpairmentOfProjectAssets_636447524627682991" order="9" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="us-gaap_GoodwillImpairmentLoss_636447524627682991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_GoodwillImpairmentLoss_636447524627682991" order="10" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromEquityMethodInvestments" xlink:label="us-gaap_IncomeLossFromEquityMethodInvestments_636447524627692991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncomeLossFromEquityMethodInvestments_636447524627692991" order="11" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="us-gaap_ShareBasedCompensation_636447524627692991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_ShareBasedCompensation_636447524627692991" order="12" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt" xlink:label="us-gaap_GainsLossesOnExtinguishmentOfDebt_636447524627692991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_GainsLossesOnExtinguishmentOfDebt_636447524627692991" order="13" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInDerivativeAssetsAndLiabilities" xlink:label="us-gaap_IncreaseDecreaseInDerivativeAssetsAndLiabilities_636447524627692991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInDerivativeAssetsAndLiabilities_636447524627692991" order="14" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment" xlink:label="us-gaap_GainLossOnSaleOfPropertyPlantEquipment_636447524627692991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_GainLossOnSaleOfPropertyPlantEquipment_636447524627692991" order="15" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInDeferredIncomeTaxes" xlink:label="us-gaap_IncreaseDecreaseInDeferredIncomeTaxes_636447524627692991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInDeferredIncomeTaxes_636447524627692991" order="16" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LossOnContracts" xlink:label="us-gaap_LossOnContracts_636447524627692991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_LossOnContracts_636447524627692991" order="17" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaidInKindInterest" xlink:label="us-gaap_PaidInKindInterest_636447524627692991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_PaidInKindInterest_636447524627692991" order="18" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_NoncashActivityRelatedToSolarSystemSubjectToFinancingObligation" xlink:label="spi_NoncashActivityRelatedToSolarSystemSubjectToFinancingObligation_636447524627692991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="spi_NoncashActivityRelatedToSolarSystemSubjectToFinancingObligation_636447524627692991" order="19" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherNoncashIncomeExpense" xlink:label="us-gaap_OtherNoncashIncomeExpense_636447524627692991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_OtherNoncashIncomeExpense_636447524627692991" order="20" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable" xlink:label="us-gaap_IncreaseDecreaseInAccountsReceivable_636447524627692991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInAccountsReceivable_636447524627692991" order="21" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInOtherReceivables" xlink:label="us-gaap_IncreaseDecreaseInOtherReceivables_636447524627692991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInOtherReceivables_636447524627692991" order="22" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInNotesReceivables" xlink:label="us-gaap_IncreaseDecreaseInNotesReceivables_636447524627692991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInNotesReceivables_636447524627692991" order="23" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInLeasingReceivables" xlink:label="us-gaap_IncreaseDecreaseInLeasingReceivables_636447524627702991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInLeasingReceivables_636447524627702991" order="24" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_IncreaseDecreaseInLeasingReceivablesNonCurrent" xlink:label="spi_IncreaseDecreaseInLeasingReceivablesNonCurrent_636447524627702991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="spi_IncreaseDecreaseInLeasingReceivablesNonCurrent_636447524627702991" order="25" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInCostInExcessOfBillingOnUncompletedContract" xlink:label="us-gaap_IncreaseDecreaseInCostInExcessOfBillingOnUncompletedContract_636447524627702991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInCostInExcessOfBillingOnUncompletedContract_636447524627702991" order="26" use="optional" weight="-1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInRestrictedCashForOperatingActivities" xlink:label="us-gaap_IncreaseDecreaseInRestrictedCashForOperatingActivities_636447524627702991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInRestrictedCashForOperatingActivities_636447524627702991" order="27" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_IncreaseDecreaseInProjectAssets" xlink:label="spi_IncreaseDecreaseInProjectAssets_636447524627702991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="spi_IncreaseDecreaseInProjectAssets_636447524627702991" order="28" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInInventories" xlink:label="us-gaap_IncreaseDecreaseInInventories_636447524627702991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInInventories_636447524627702991" order="29" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" xlink:label="us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_636447524627702991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_636447524627702991" order="30" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable" xlink:label="us-gaap_IncreaseDecreaseInAccountsPayable_636447524627702991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInAccountsPayable_636447524627702991" order="31" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties" xlink:label="us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_636447524627712991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_636447524627712991" order="32" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInNotesPayableCurrent" xlink:label="us-gaap_IncreaseDecreaseInNotesPayableCurrent_636447524627712991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInNotesPayableCurrent_636447524627712991" order="33" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInCustomerAdvances" xlink:label="us-gaap_IncreaseDecreaseInCustomerAdvances_636447524627712991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInCustomerAdvances_636447524627712991" order="34" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable" xlink:label="us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_636447524627712991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_636447524627712991" order="35" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInBillingInExcessOfCostOfEarnings" xlink:label="us-gaap_IncreaseDecreaseInBillingInExcessOfCostOfEarnings_636447524627712991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInBillingInExcessOfCostOfEarnings_636447524627712991" order="36" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities" xlink:label="us-gaap_IncreaseDecreaseInAccruedLiabilities_636447524627722991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInAccruedLiabilities_636447524627722991" order="37" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInDueToRelatedParties" xlink:label="us-gaap_IncreaseDecreaseInDueToRelatedParties_636447524627722991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_636447524627682991" xlink:to="us-gaap_IncreaseDecreaseInDueToRelatedParties_636447524627722991" order="38" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="us-gaap_NetCashProvidedByUsedInInvestingActivities_636447524627722991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:to="us-gaap_NetCashProvidedByUsedInInvestingActivities_636447524627722991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromCollectionOfNotesReceivable" xlink:label="us-gaap_ProceedsFromCollectionOfNotesReceivable_636447524627722991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_636447524627722991" xlink:to="us-gaap_ProceedsFromCollectionOfNotesReceivable_636447524627722991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment" xlink:label="us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_636447524627722991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_636447524627722991" xlink:to="us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_636447524627722991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments" xlink:label="us-gaap_PaymentsToAcquireEquityMethodInvestments_636447524627732991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_636447524627722991" xlink:to="us-gaap_PaymentsToAcquireEquityMethodInvestments_636447524627732991" order="3" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_636447524627732991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_636447524627722991" xlink:to="us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_636447524627732991" order="4" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromSaleOfEquityMethodInvestments" xlink:label="us-gaap_ProceedsFromSaleOfEquityMethodInvestments_636447524627732991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_636447524627722991" xlink:to="us-gaap_ProceedsFromSaleOfEquityMethodInvestments_636447524627732991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SaleLeasebackTransactionNetProceedsInvestingActivities" xlink:label="us-gaap_SaleLeasebackTransactionNetProceedsInvestingActivities_636447524627732991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_636447524627722991" xlink:to="us-gaap_SaleLeasebackTransactionNetProceedsInvestingActivities_636447524627732991" order="6" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_PaymentsToAcquireProjectAssets" xlink:label="spi_PaymentsToAcquireProjectAssets_636447524627732991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_636447524627722991" xlink:to="spi_PaymentsToAcquireProjectAssets_636447524627732991" order="7" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquireInterestInSubsidiariesAndAffiliates" xlink:label="us-gaap_PaymentsToAcquireInterestInSubsidiariesAndAffiliates_636447524627742991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_636447524627722991" xlink:to="us-gaap_PaymentsToAcquireInterestInSubsidiariesAndAffiliates_636447524627742991" order="8" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromShortTermDebtMaturingInThreeMonthsOrLess" xlink:label="us-gaap_ProceedsFromShortTermDebtMaturingInThreeMonthsOrLess_636447524627742991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_636447524627722991" xlink:to="us-gaap_ProceedsFromShortTermDebtMaturingInThreeMonthsOrLess_636447524627742991" order="9" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired" xlink:label="us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_636447524627742991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_636447524627722991" xlink:to="us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_636447524627742991" order="10" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquireShortTermInvestments" xlink:label="us-gaap_PaymentsToAcquireShortTermInvestments_636447524627742991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_636447524627722991" xlink:to="us-gaap_PaymentsToAcquireShortTermInvestments_636447524627742991" order="11" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromPaymentsForInInterestBearingDepositsInBanks" xlink:label="us-gaap_ProceedsFromPaymentsForInInterestBearingDepositsInBanks_636447524627752991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_636447524627722991" xlink:to="us-gaap_ProceedsFromPaymentsForInInterestBearingDepositsInBanks_636447524627752991" order="12" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromSaleOfShortTermInvestments" xlink:label="us-gaap_ProceedsFromSaleOfShortTermInvestments_636447524627752991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_636447524627722991" xlink:to="us-gaap_ProceedsFromSaleOfShortTermInvestments_636447524627752991" order="13" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="us-gaap_NetCashProvidedByUsedInFinancingActivities_636447524627752991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:to="us-gaap_NetCashProvidedByUsedInFinancingActivities_636447524627752991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:label="us-gaap_ProceedsFromIssuanceOfCommonStock_636447524627752991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_636447524627752991" xlink:to="us-gaap_ProceedsFromIssuanceOfCommonStock_636447524627752991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromIssuanceOfDebt" xlink:label="us-gaap_ProceedsFromIssuanceOfDebt_636447524627752991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_636447524627752991" xlink:to="us-gaap_ProceedsFromIssuanceOfDebt_636447524627752991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromShortTermDebt" xlink:label="us-gaap_ProceedsFromShortTermDebt_636447524627752991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_636447524627752991" xlink:to="us-gaap_ProceedsFromShortTermDebt_636447524627752991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromRepaymentsOfRestrictedCashFinancingActivities" xlink:label="us-gaap_ProceedsFromRepaymentsOfRestrictedCashFinancingActivities_636447524627752991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_636447524627752991" xlink:to="us-gaap_ProceedsFromRepaymentsOfRestrictedCashFinancingActivities_636447524627752991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities" xlink:label="us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_636447524627762991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_636447524627752991" xlink:to="us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_636447524627762991" order="5" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromConvertibleDebt" xlink:label="us-gaap_ProceedsFromConvertibleDebt_636447524627762991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_636447524627752991" xlink:to="us-gaap_ProceedsFromConvertibleDebt_636447524627762991" order="6" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RepaymentsOfDebt" xlink:label="us-gaap_RepaymentsOfDebt_636447524627762991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_636447524627752991" xlink:to="us-gaap_RepaymentsOfDebt_636447524627762991" order="7" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RepaymentsOfShortTermDebt" xlink:label="us-gaap_RepaymentsOfShortTermDebt_636447524627762991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_636447524627752991" xlink:to="us-gaap_RepaymentsOfShortTermDebt_636447524627762991" order="8" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents" xlink:label="us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents_636447524627762991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:to="us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents_636447524627762991" order="4" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureDescriptionOfBusinessAndOrganizationVariableInterestEntitiesDetails" xlink:type="extended" xlink:title="40101 - Disclosure - Description of Business and Organization - Variable interest entities (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Assets" xlink:label="Assets"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="us-gaap_CashAndCashEquivalentsAtCarryingValue_636447524627772991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_CashAndCashEquivalentsAtCarryingValue_636447524627772991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryNet" xlink:label="us-gaap_InventoryNet_636447524627772991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_InventoryNet_636447524627772991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="us-gaap_PrepaidExpenseAndOtherAssetsCurrent_636447524627772991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_PrepaidExpenseAndOtherAssetsCurrent_636447524627772991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NontradeReceivablesNoncurrent" xlink:label="us-gaap_NontradeReceivablesNoncurrent_636447524627772991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_NontradeReceivablesNoncurrent_636447524627772991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="us-gaap_PropertyPlantAndEquipmentNet_636447524627772991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_PropertyPlantAndEquipmentNet_636447524627772991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Liabilities" xlink:label="Liabilities"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="us-gaap_AccountsPayableCurrent_636447524627772991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Liabilities" xlink:to="us-gaap_AccountsPayableCurrent_636447524627772991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="us-gaap_AccruedLiabilitiesCurrent_636447524627772991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Liabilities" xlink:to="us-gaap_AccruedLiabilitiesCurrent_636447524627772991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherLiabilitiesCurrent" xlink:label="us-gaap_OtherLiabilitiesCurrent_636447524627772991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="Liabilities" xlink:to="us-gaap_OtherLiabilitiesCurrent_636447524627772991" order="3" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureSummaryOfSignificantAccountingPoliciesCapitalizedInterestDetails" xlink:type="extended" xlink:title="40212 - Disclosure - Summary of Significant Accounting Policies - Capitalized interest (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestExpense" xlink:label="InterestExpense"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestCostsIncurred" xlink:label="us-gaap_InterestCostsIncurred_636447524627772991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="InterestExpense" xlink:to="us-gaap_InterestCostsIncurred_636447524627772991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestCostsCapitalized" xlink:label="us-gaap_InterestCostsCapitalized_636447524627772991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="InterestExpense" xlink:to="us-gaap_InterestCostsCapitalized_636447524627772991" order="2" use="optional" weight="1" priority="3"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureAccountsReceivableAgeingOfAccountsReceivableDetails" xlink:type="extended" xlink:title="40402 - Disclosure - Accounts Receivable - Ageing of Accounts Receivable (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="AccountsReceivableNetCurrent"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableGrossCurrent" xlink:label="us-gaap_AccountsReceivableGrossCurrent_636447524627782991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AccountsReceivableNetCurrent" xlink:to="us-gaap_AccountsReceivableGrossCurrent_636447524627782991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent" xlink:label="us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_636447524627782991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AccountsReceivableNetCurrent" xlink:to="us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_636447524627782991" order="2" use="optional" weight="-1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureInventoriesDetails" xlink:type="extended" xlink:title="40501 - Disclosure - Inventories (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryNet" xlink:label="InventoryNet"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryFinishedGoodsNetOfReserves" xlink:label="us-gaap_InventoryFinishedGoodsNetOfReserves_636447524627782991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="InventoryNet" xlink:to="us-gaap_InventoryFinishedGoodsNetOfReserves_636447524627782991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryRawMaterialsNetOfReserves" xlink:label="us-gaap_InventoryRawMaterialsNetOfReserves_636447524627782991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="InventoryNet" xlink:to="us-gaap_InventoryRawMaterialsNetOfReserves_636447524627782991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryWorkInProcessAndRawMaterialsNetOfReserves" xlink:label="us-gaap_InventoryWorkInProcessAndRawMaterialsNetOfReserves_636447524627782991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="InventoryNet" xlink:to="us-gaap_InventoryWorkInProcessAndRawMaterialsNetOfReserves_636447524627782991" order="3" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureProjectAssetsScheduleDetails" xlink:type="extended" xlink:title="40602 - Disclosure - Project Assets - Schedule (Details)"> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_ConstructionProjectsNet" xlink:label="ConstructionProjectsNet"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_ConstructionProjectsOutstandingOwnedNet" xlink:label="spi_ConstructionProjectsOutstandingOwnedNet_636447524627782991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ConstructionProjectsNet" xlink:to="spi_ConstructionProjectsOutstandingOwnedNet_636447524627782991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_ConstructionProjectsOutstandingOwnershipExpectedNet" xlink:label="spi_ConstructionProjectsOutstandingOwnershipExpectedNet_636447524627782991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ConstructionProjectsNet" xlink:to="spi_ConstructionProjectsOutstandingOwnershipExpectedNet_636447524627782991" order="2" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosurePrepaidExpensesAndOtherCurrentAssetsSummaryOfPrepaidExpensesAndOtherCurrentAssetsDetails" xlink:type="extended" xlink:title="40701 - Disclosure - Prepaid expenses and other current assets - Summary of Prepaid expenses and other current assets (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="PrepaidExpenseAndOtherAssetsCurrent"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValueAddedTaxReceivable" xlink:label="us-gaap_ValueAddedTaxReceivable_636447524627782991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="us-gaap_ValueAddedTaxReceivable_636447524627782991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DueFromEmployeesCurrent" xlink:label="us-gaap_DueFromEmployeesCurrent_636447524627782991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="us-gaap_DueFromEmployeesCurrent_636447524627782991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_DepositAndPrepaymentForAcquisitions" xlink:label="spi_DepositAndPrepaymentForAcquisitions_636447524627782991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="spi_DepositAndPrepaymentForAcquisitions_636447524627782991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_OtherDepositAndPrepayments" xlink:label="spi_OtherDepositAndPrepayments_636447524627782991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="spi_OtherDepositAndPrepayments_636447524627782991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherReceivablesNetCurrent" xlink:label="us-gaap_OtherReceivablesNetCurrent_636447524627782991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="us-gaap_OtherReceivablesNetCurrent_636447524627782991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherAssetsCurrent" xlink:label="us-gaap_OtherAssetsCurrent_636447524627782991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="us-gaap_OtherAssetsCurrent_636447524627782991" order="6" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureProjectAssetsSummaryOfProjectAssetsDetailsCalc2" xlink:type="extended" xlink:title="40702 - Disclosure - Project Assets - Summary of Project Assets (Details) Calc 2"> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_ConstructionProjectsNet" xlink:label="ConstructionProjectsNet"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_ConstructionInProjectsNetCurrent" xlink:label="spi_ConstructionInProjectsNetCurrent_636447524627792991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ConstructionProjectsNet" xlink:to="spi_ConstructionInProjectsNetCurrent_636447524627792991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_ConstructionInProjectsNetNonCurrent" xlink:label="spi_ConstructionInProjectsNetNonCurrent_636447524627792991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ConstructionProjectsNet" xlink:to="spi_ConstructionInProjectsNetNonCurrent_636447524627792991" order="2" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureFinanceLeaseReceivablesScheduleOfFinanceLeaseReceivablesDetails" xlink:type="extended" xlink:title="40802 - Disclosure - Finance lease receivables - Schedule of finance lease receivables (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasesNetInvestmentInDirectFinancingLeases" xlink:label="CapitalLeasesNetInvestmentInDirectFinancingLeases"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_CapitalLeasesNetInvestmentInDirectFinancingLeasesPresentValueOfTotalMinimumPayments" xlink:label="spi_CapitalLeasesNetInvestmentInDirectFinancingLeasesPresentValueOfTotalMinimumPayments_636447524627792991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CapitalLeasesNetInvestmentInDirectFinancingLeases" xlink:to="spi_CapitalLeasesNetInvestmentInDirectFinancingLeasesPresentValueOfTotalMinimumPayments_636447524627792991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasesNetInvestmentInDirectFinancingLeasesMinimumPaymentsToBeReceived" xlink:label="us-gaap_CapitalLeasesNetInvestmentInDirectFinancingLeasesMinimumPaymentsToBeReceived_636447524627792991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="spi_CapitalLeasesNetInvestmentInDirectFinancingLeasesPresentValueOfTotalMinimumPayments_636447524627792991" xlink:to="us-gaap_CapitalLeasesNetInvestmentInDirectFinancingLeasesMinimumPaymentsToBeReceived_636447524627792991" order="1" use="optional" weight="1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_CapitalLeasesNetInvestmentInDirectFinancingLeasesInterest" xlink:label="spi_CapitalLeasesNetInvestmentInDirectFinancingLeasesInterest_636447524627792991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="spi_CapitalLeasesNetInvestmentInDirectFinancingLeasesPresentValueOfTotalMinimumPayments_636447524627792991" xlink:to="spi_CapitalLeasesNetInvestmentInDirectFinancingLeasesInterest_636447524627792991" order="2" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasesNetInvestmentInDirectFinancingLeasesAllowanceForUncollectibleMinimumLeasePayments" xlink:label="us-gaap_CapitalLeasesNetInvestmentInDirectFinancingLeasesAllowanceForUncollectibleMinimumLeasePayments_636447524627792991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CapitalLeasesNetInvestmentInDirectFinancingLeases" xlink:to="us-gaap_CapitalLeasesNetInvestmentInDirectFinancingLeasesAllowanceForUncollectibleMinimumLeasePayments_636447524627792991" order="2" use="optional" weight="-1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureFinanceLeaseReceivablesScheduleOfFutureMaturitiesOfMinimumLeasePaymentsReceivableDetails" xlink:type="extended" xlink:title="40803 - Disclosure - Finance lease receivables - Schedule of future maturities of minimum lease payments receivable (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasesFutureMinimumPaymentsReceivable" xlink:label="CapitalLeasesFutureMinimumPaymentsReceivable"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableCurrent" xlink:label="us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableCurrent_636447524627792991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CapitalLeasesFutureMinimumPaymentsReceivable" xlink:to="us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableCurrent_636447524627792991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableInFiveYears" xlink:label="us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableInFiveYears_636447524627792991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CapitalLeasesFutureMinimumPaymentsReceivable" xlink:to="us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableInFiveYears_636447524627792991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableInFourYears" xlink:label="us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableInFourYears_636447524627792991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CapitalLeasesFutureMinimumPaymentsReceivable" xlink:to="us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableInFourYears_636447524627792991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableInThreeYears" xlink:label="us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableInThreeYears_636447524627792991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CapitalLeasesFutureMinimumPaymentsReceivable" xlink:to="us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableInThreeYears_636447524627792991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableInTwoYears" xlink:label="us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableInTwoYears_636447524627792991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CapitalLeasesFutureMinimumPaymentsReceivable" xlink:to="us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableInTwoYears_636447524627792991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableDueThereafter" xlink:label="us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableDueThereafter_636447524627792991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CapitalLeasesFutureMinimumPaymentsReceivable" xlink:to="us-gaap_CapitalLeasesFutureMinimumPaymentsReceivableDueThereafter_636447524627792991" order="6" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosurePropertyPlantAndEquipmentDetails" xlink:type="extended" xlink:title="40901 - Disclosure - Property, Plant and Equipment (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="PropertyPlantAndEquipmentNet"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_PropertyPlantAndEquipmentBeforeConstructionInProgress" xlink:label="spi_PropertyPlantAndEquipmentBeforeConstructionInProgress_636447524627802991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="PropertyPlantAndEquipmentNet" xlink:to="spi_PropertyPlantAndEquipmentBeforeConstructionInProgress_636447524627802991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_636447524627802991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="spi_PropertyPlantAndEquipmentBeforeConstructionInProgress_636447524627802991" xlink:to="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_636447524627802991" order="1" use="optional" weight="-1" priority="1"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="us-gaap_PropertyPlantAndEquipmentGross_636447524627802991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="spi_PropertyPlantAndEquipmentBeforeConstructionInProgress_636447524627802991" xlink:to="us-gaap_PropertyPlantAndEquipmentGross_636447524627802991" order="2" use="optional" weight="1" priority="1"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConstructionInProgressGross" xlink:label="us-gaap_ConstructionInProgressGross_636447524627802991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="PropertyPlantAndEquipmentNet" xlink:to="us-gaap_ConstructionInProgressGross_636447524627802991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_ConstructionInProgressAccumulatedImpairment" xlink:label="spi_ConstructionInProgressAccumulatedImpairment_636447524627802991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="PropertyPlantAndEquipmentNet" xlink:to="spi_ConstructionInProgressAccumulatedImpairment_636447524627802991" order="3" use="optional" weight="-1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureFinanceLeaseReceivablesScheduleOfFinanceLeaseReceivableDetailsCalc2" xlink:type="extended" xlink:title="40902 - Disclosure - Finance Lease Receivables - Schedule of Finance Lease Receivable (Details) Calc 2"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasesNetInvestmentInDirectFinancingLeases" xlink:label="CapitalLeasesNetInvestmentInDirectFinancingLeases"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasesLessorBalanceSheetNetInvestmentInDirectFinancingLeasesCurrent" xlink:label="us-gaap_CapitalLeasesLessorBalanceSheetNetInvestmentInDirectFinancingLeasesCurrent_636447524627802991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CapitalLeasesNetInvestmentInDirectFinancingLeases" xlink:to="us-gaap_CapitalLeasesLessorBalanceSheetNetInvestmentInDirectFinancingLeasesCurrent_636447524627802991" order="1" use="optional" weight="1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeasesLessorBalanceSheetNetInvestmentInDirectFinancingLeasesNoncurrent" xlink:label="us-gaap_CapitalLeasesLessorBalanceSheetNetInvestmentInDirectFinancingLeasesNoncurrent_636447524627802991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="CapitalLeasesNetInvestmentInDirectFinancingLeases" xlink:to="us-gaap_CapitalLeasesLessorBalanceSheetNetInvestmentInDirectFinancingLeasesNoncurrent_636447524627802991" order="2" use="optional" weight="1" priority="3"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureFairValueMeasurementCarryingAmountsAndEstimatedFairValuesOfFinancialInstrumentsDetails" xlink:type="extended" xlink:title="41101 - Disclosure - Fair value measurement - Carrying amounts and estimated fair values of financial instruments (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="AssetsFairValueDisclosure"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeAssetsNoncurrent" xlink:label="us-gaap_DerivativeAssetsNoncurrent_636447524627802991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsFairValueDisclosure" xlink:to="us-gaap_DerivativeAssetsNoncurrent_636447524627802991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:label="us-gaap_CashAndCashEquivalentsFairValueDisclosure_636447524627802991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsFairValueDisclosure" xlink:to="us-gaap_CashAndCashEquivalentsFairValueDisclosure_636447524627802991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_RestrictedCashAndBankDepositsWithMaturityOverThreeMonthsFairValueDisclosure" xlink:label="spi_RestrictedCashAndBankDepositsWithMaturityOverThreeMonthsFairValueDisclosure_636447524627802991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsFairValueDisclosure" xlink:to="spi_RestrictedCashAndBankDepositsWithMaturityOverThreeMonthsFairValueDisclosure_636447524627802991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ReceivablesFairValueDisclosure" xlink:label="us-gaap_ReceivablesFairValueDisclosure_636447524627802991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsFairValueDisclosure" xlink:to="us-gaap_ReceivablesFairValueDisclosure_636447524627802991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_OtherReceivablesFairValueDisclosure" xlink:label="spi_OtherReceivablesFairValueDisclosure_636447524627802991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsFairValueDisclosure" xlink:to="spi_OtherReceivablesFairValueDisclosure_636447524627802991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_FinanceReceivablesFairValueDisclosure" xlink:label="spi_FinanceReceivablesFairValueDisclosure_636447524627802991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsFairValueDisclosure" xlink:to="spi_FinanceReceivablesFairValueDisclosure_636447524627802991" order="6" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVenturesFairValueDisclosure" xlink:label="us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVenturesFairValueDisclosure_636447524627812991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetsFairValueDisclosure" xlink:to="us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVenturesFairValueDisclosure_636447524627812991" order="7" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancialLiabilitiesFairValueDisclosure" xlink:label="FinancialLiabilitiesFairValueDisclosure"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentFairValue" xlink:label="us-gaap_DebtInstrumentFairValue_636447524627812991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FinancialLiabilitiesFairValueDisclosure" xlink:to="us-gaap_DebtInstrumentFairValue_636447524627812991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_AccountsAndNotesPayableFairValueDisclosure" xlink:label="spi_AccountsAndNotesPayableFairValueDisclosure_636447524627812991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FinancialLiabilitiesFairValueDisclosure" xlink:to="spi_AccountsAndNotesPayableFairValueDisclosure_636447524627812991" order="2" use="optional" weight="1" priority="1"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherLiabilitiesFairValueDisclosure" xlink:label="us-gaap_OtherLiabilitiesFairValueDisclosure_636447524627812991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FinancialLiabilitiesFairValueDisclosure" xlink:to="us-gaap_OtherLiabilitiesFairValueDisclosure_636447524627812991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConvertibleDebtFairValueDisclosures" xlink:label="us-gaap_ConvertibleDebtFairValueDisclosures_636447524627812991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FinancialLiabilitiesFairValueDisclosure" xlink:to="us-gaap_ConvertibleDebtFairValueDisclosures_636447524627812991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_CommitmentsAndContingenciesFairValue" xlink:label="spi_CommitmentsAndContingenciesFairValue_636447524627812991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FinancialLiabilitiesFairValueDisclosure" xlink:to="spi_CommitmentsAndContingenciesFairValue_636447524627812991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_CapitalLeaseObligationsFairValue" xlink:label="spi_CapitalLeaseObligationsFairValue_636447524627812991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FinancialLiabilitiesFairValueDisclosure" xlink:to="spi_CapitalLeaseObligationsFairValue_636447524627812991" order="6" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureAccruedLiabilitiesDetails" xlink:type="extended" xlink:title="41301 - Disclosure - Accrued liabilities (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="AccruedLiabilitiesCurrent"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxesPayableCurrent" xlink:label="us-gaap_TaxesPayableCurrent_636447524627822991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AccruedLiabilitiesCurrent" xlink:to="us-gaap_TaxesPayableCurrent_636447524627822991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_AccruedExpenseCurrent" xlink:label="spi_AccruedExpenseCurrent_636447524627822991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AccruedLiabilitiesCurrent" xlink:to="spi_AccruedExpenseCurrent_636447524627822991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsPayableOtherCurrent" xlink:label="us-gaap_AccountsPayableOtherCurrent_636447524627822991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AccruedLiabilitiesCurrent" xlink:to="us-gaap_AccountsPayableOtherCurrent_636447524627822991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherAccruedLiabilitiesCurrent" xlink:label="us-gaap_OtherAccruedLiabilitiesCurrent_636447524627822991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AccruedLiabilitiesCurrent" xlink:to="us-gaap_OtherAccruedLiabilitiesCurrent_636447524627822991" order="4" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureShortTermBorrowingsAndLongTermBorrowingsScheduleDetailsCalc2" xlink:type="extended" xlink:title="41501 - Disclosure - Short term borrowings and long term borrowings - Schedule (Details) - Calc 2"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebt" xlink:label="LongTermDebt"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths" xlink:label="us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_636447524627822991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LongTermDebt" xlink:to="us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_636447524627822991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo" xlink:label="us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_636447524627822991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LongTermDebt" xlink:to="us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_636447524627822991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree" xlink:label="us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_636447524627822991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LongTermDebt" xlink:to="us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_636447524627822991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour" xlink:label="us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_636447524627822991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LongTermDebt" xlink:to="us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_636447524627822991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive" xlink:label="us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_636447524627822991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LongTermDebt" xlink:to="us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_636447524627822991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive" xlink:label="us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_636447524627822991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LongTermDebt" xlink:to="us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_636447524627822991" order="6" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureShortTermBorrowingsAndLongTermBorrowingsScheduleDetailsCalc3" xlink:type="extended" xlink:title="41501 - Disclosure - Short term borrowings and long term borrowings - Schedule (Details) - Calc 3"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtCurrent" xlink:label="us-gaap_DebtCurrent"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShortTermBankLoansAndNotesPayable" xlink:label="us-gaap_ShortTermBankLoansAndNotesPayable_636447524627822991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DebtCurrent" xlink:to="us-gaap_ShortTermBankLoansAndNotesPayable_636447524627822991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShortTermNonBankLoansAndNotesPayable" xlink:label="us-gaap_ShortTermNonBankLoansAndNotesPayable_636447524627822991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DebtCurrent" xlink:to="us-gaap_ShortTermNonBankLoansAndNotesPayable_636447524627822991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="us-gaap_LongTermDebtCurrent_636447524627822991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DebtCurrent" xlink:to="us-gaap_LongTermDebtCurrent_636447524627822991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherShortTermBorrowings" xlink:label="us-gaap_OtherShortTermBorrowings_636447524627822991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DebtCurrent" xlink:to="us-gaap_OtherShortTermBorrowings_636447524627822991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_NonBankLoansAndNotesPayable" xlink:label="spi_NonBankLoansAndNotesPayable"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShortTermNonBankLoansAndNotesPayable" xlink:label="us-gaap_ShortTermNonBankLoansAndNotesPayable_636447524627832991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="spi_NonBankLoansAndNotesPayable" xlink:to="us-gaap_ShortTermNonBankLoansAndNotesPayable_636447524627832991" order="1" use="optional" weight="1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_LongTermNonBankLoansAndNotesPayable" xlink:label="spi_LongTermNonBankLoansAndNotesPayable_636447524627832991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="spi_NonBankLoansAndNotesPayable" xlink:to="spi_LongTermNonBankLoansAndNotesPayable_636447524627832991" order="2" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureShortTermBorrowingsAndLongTermBorrowingsScheduleDetailsCalc4" xlink:type="extended" xlink:title="41501 - Disclosure - Short term borrowings and long term borrowings - Schedule (Details) - Calc 4"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebt" xlink:label="us-gaap_LongTermDebt"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="us-gaap_LongTermDebtCurrent_636447524627832991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LongTermDebt" xlink:to="us-gaap_LongTermDebtCurrent_636447524627832991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="us-gaap_LongTermDebtNoncurrent_636447524627832991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LongTermDebt" xlink:to="us-gaap_LongTermDebtNoncurrent_636447524627832991" order="2" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureShortTermBorrowingsAndLongTermBorrowingsScheduleDetails" xlink:type="extended" xlink:title="41501 - Disclosure - Short-term borrowings and long-term borrowings - Schedule (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtLongtermAndShorttermCombinedAmount" xlink:label="DebtLongtermAndShorttermCombinedAmount"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtCurrent" xlink:label="us-gaap_DebtCurrent_636447524627832991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DebtLongtermAndShorttermCombinedAmount" xlink:to="us-gaap_DebtCurrent_636447524627832991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="us-gaap_LongTermDebtNoncurrent_636447524627832991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DebtLongtermAndShorttermCombinedAmount" xlink:to="us-gaap_LongTermDebtNoncurrent_636447524627832991" order="2" use="optional" weight="1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebt" xlink:label="LongTermDebt"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermLoansFromBank" xlink:label="us-gaap_LongTermLoansFromBank_636447524627832991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LongTermDebt" xlink:to="us-gaap_LongTermLoansFromBank_636447524627832991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_LongTermNonBankLoansAndNotesPayable" xlink:label="spi_LongTermNonBankLoansAndNotesPayable_636447524627832991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LongTermDebt" xlink:to="spi_LongTermNonBankLoansAndNotesPayable_636447524627832991" order="2" use="optional" weight="1" priority="1"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherLongTermDebtNoncurrent" xlink:label="us-gaap_OtherLongTermDebtNoncurrent_636447524627832991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="LongTermDebt" xlink:to="us-gaap_OtherLongTermDebtNoncurrent_636447524627832991" order="3" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureOtherLiabilitiesScheduleDetails" xlink:type="extended" xlink:title="41601 - Disclosure - Other liabilities - Schedule (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherLiabilities" xlink:label="OtherLiabilities"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherLiabilitiesCurrent" xlink:label="us-gaap_OtherLiabilitiesCurrent_636447524627842991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OtherLiabilities" xlink:to="us-gaap_OtherLiabilitiesCurrent_636447524627842991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_DueToIndividualInvestorsCurrent" xlink:label="spi_DueToIndividualInvestorsCurrent_636447524627842991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OtherLiabilitiesCurrent_636447524627842991" xlink:to="spi_DueToIndividualInvestorsCurrent_636447524627842991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccruedPayrollTaxesCurrent" xlink:label="us-gaap_AccruedPayrollTaxesCurrent_636447524627842991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OtherLiabilitiesCurrent_636447524627842991" xlink:to="us-gaap_AccruedPayrollTaxesCurrent_636447524627842991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherSundryLiabilitiesCurrent" xlink:label="us-gaap_OtherSundryLiabilitiesCurrent_636447524627842991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OtherLiabilitiesCurrent_636447524627842991" xlink:to="us-gaap_OtherSundryLiabilitiesCurrent_636447524627842991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="us-gaap_OtherLiabilitiesNoncurrent_636447524627842991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OtherLiabilities" xlink:to="us-gaap_OtherLiabilitiesNoncurrent_636447524627842991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherSundryLiabilitiesNoncurrent" xlink:label="us-gaap_OtherSundryLiabilitiesNoncurrent_636447524627842991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OtherLiabilitiesNoncurrent_636447524627842991" xlink:to="us-gaap_OtherSundryLiabilitiesNoncurrent_636447524627842991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProductWarrantyAccrualNoncurrent" xlink:label="us-gaap_ProductWarrantyAccrualNoncurrent_636447524627842991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OtherLiabilitiesNoncurrent_636447524627842991" xlink:to="us-gaap_ProductWarrantyAccrualNoncurrent_636447524627842991" order="2" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureGoodwillAndOtherIntangibleAssetsOtherIntangibleAssetsDetails" xlink:type="extended" xlink:title="41702 - Disclosure - Goodwill and Other Intangible Assets - Other Intangible Assets (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="FiniteLivedIntangibleAssetsNet"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_FiniteLivedIntangibleAssetsImpairmentCharge" xlink:label="spi_FiniteLivedIntangibleAssetsImpairmentCharge_636447524627842991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FiniteLivedIntangibleAssetsNet" xlink:to="spi_FiniteLivedIntangibleAssetsImpairmentCharge_636447524627842991" order="1" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_636447524627842991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FiniteLivedIntangibleAssetsNet" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_636447524627842991" order="2" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="us-gaap_FiniteLivedIntangibleAssetsGross_636447524627842991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="FiniteLivedIntangibleAssetsNet" xlink:to="us-gaap_FiniteLivedIntangibleAssetsGross_636447524627842991" order="3" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureGoodwillAndOtherIntangibleAssetsFutureAmortizationExpenseDetails" xlink:type="extended" xlink:title="41703 - Disclosure - Goodwill and Other Intangible Assets - Future amortization expense (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="us-gaap_FiniteLivedIntangibleAssetsNet"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_636447524627842991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_FiniteLivedIntangibleAssetsNet" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_636447524627842991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_636447524627842991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_FiniteLivedIntangibleAssetsNet" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_636447524627842991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_636447524627842991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_FiniteLivedIntangibleAssetsNet" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_636447524627842991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_636447524627842991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_FiniteLivedIntangibleAssetsNet" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_636447524627842991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_636447524627852991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_FiniteLivedIntangibleAssetsNet" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_636447524627852991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_636447524627852991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_FiniteLivedIntangibleAssetsNet" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_636447524627852991" order="6" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureStockBasedCompensationCompensationExpenseByLineItemDetails" xlink:type="extended" xlink:title="42102 - Disclosure - Stock-based Compensation - Compensation Expense by Line Item (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax" xlink:label="AllocatedShareBasedCompensationExpenseNetOfTax"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="us-gaap_AllocatedShareBasedCompensationExpense_636447524627852991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AllocatedShareBasedCompensationExpenseNetOfTax" xlink:to="us-gaap_AllocatedShareBasedCompensationExpense_636447524627852991" order="1" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureImpairmentChargesDetails" xlink:type="extended" xlink:title="42301 - Disclosure - Impairment Charges - (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetImpairmentCharges" xlink:label="AssetImpairmentCharges"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairmentOfIntangibleAssetsFinitelived" xlink:label="us-gaap_ImpairmentOfIntangibleAssetsFinitelived_636447524627852991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetImpairmentCharges" xlink:to="us-gaap_ImpairmentOfIntangibleAssetsFinitelived_636447524627852991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_ImpairmentOfProjectAssets" xlink:label="spi_ImpairmentOfProjectAssets_636447524627852991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetImpairmentCharges" xlink:to="spi_ImpairmentOfProjectAssets_636447524627852991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_FinanceLeaseImpairmentLoss" xlink:label="spi_FinanceLeaseImpairmentLoss_636447524627852991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetImpairmentCharges" xlink:to="spi_FinanceLeaseImpairmentLoss_636447524627852991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="us-gaap_GoodwillImpairmentLoss_636447524627852991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetImpairmentCharges" xlink:to="us-gaap_GoodwillImpairmentLoss_636447524627852991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairmentOfLongLivedAssetsHeldForUse" xlink:label="us-gaap_ImpairmentOfLongLivedAssetsHeldForUse_636447524627852991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="AssetImpairmentCharges" xlink:to="us-gaap_ImpairmentOfLongLivedAssetsHeldForUse_636447524627852991" order="5" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureIncomeTaxesLossBeforeProvisionForIncomeTaxesByGeographicLocationsDetails" xlink:type="extended" xlink:title="42401 - Disclosure - Income Taxes - Loss before provision for income taxes by geographic locations (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic" xlink:label="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_636447524627852991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_636447524627852991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign" xlink:label="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_636447524627852991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_636447524627852991" order="2" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureIncomeTaxesProvisionForIncomeTaxesDetails" xlink:type="extended" xlink:title="42402 - Disclosure - Income Taxes - Provision for income taxes (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="IncomeTaxExpenseBenefit"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit" xlink:label="us-gaap_CurrentIncomeTaxExpenseBenefit_636447524627862991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_CurrentIncomeTaxExpenseBenefit_636447524627862991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit" xlink:label="us-gaap_CurrentStateAndLocalTaxExpenseBenefit_636447524627862991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_CurrentIncomeTaxExpenseBenefit_636447524627862991" xlink:to="us-gaap_CurrentStateAndLocalTaxExpenseBenefit_636447524627862991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CurrentForeignTaxExpenseBenefit" xlink:label="us-gaap_CurrentForeignTaxExpenseBenefit_636447524627862991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_CurrentIncomeTaxExpenseBenefit_636447524627862991" xlink:to="us-gaap_CurrentForeignTaxExpenseBenefit_636447524627862991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="us-gaap_DeferredIncomeTaxExpenseBenefit_636447524627862991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_DeferredIncomeTaxExpenseBenefit_636447524627862991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit" xlink:label="us-gaap_DeferredForeignIncomeTaxExpenseBenefit_636447524627862991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredIncomeTaxExpenseBenefit_636447524627862991" xlink:to="us-gaap_DeferredForeignIncomeTaxExpenseBenefit_636447524627862991" order="1" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureIncomeTaxesReconciliationBetweenActualIncomeTaxExpenseAndIncomeTaxDetails" xlink:type="extended" xlink:title="42403 - Disclosure - Income Taxes - Reconciliation between actual income tax expense and income tax (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="IncomeTaxExpenseBenefit"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate" xlink:label="us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_636447524627862991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_636447524627862991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes" xlink:label="us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_636447524627862991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_636447524627862991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential" xlink:label="us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential_636447524627862991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential_636447524627862991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpense" xlink:label="us-gaap_IncomeTaxReconciliationNondeductibleExpense_636447524627862991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_IncomeTaxReconciliationNondeductibleExpense_636447524627862991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxReconciliationTaxExemptIncome" xlink:label="us-gaap_IncomeTaxReconciliationTaxExemptIncome_636447524627862991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_IncomeTaxReconciliationTaxExemptIncome_636447524627862991" order="5" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance" xlink:label="us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_636447524627862991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_636447524627862991" order="6" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxReconciliationOtherAdjustments" xlink:label="us-gaap_IncomeTaxReconciliationOtherAdjustments_636447524627862991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_IncomeTaxReconciliationOtherAdjustments_636447524627862991" order="7" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxReconciliationPriorYearIncomeTaxes" xlink:label="us-gaap_IncomeTaxReconciliationPriorYearIncomeTaxes_636447524627862991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_IncomeTaxReconciliationPriorYearIncomeTaxes_636447524627862991" order="8" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseImpairmentLosses" xlink:label="us-gaap_IncomeTaxReconciliationNondeductibleExpenseImpairmentLosses_636447524627862991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_IncomeTaxReconciliationNondeductibleExpenseImpairmentLosses_636447524627862991" order="9" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost" xlink:label="us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost_636447524627862991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost_636447524627862991" order="10" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureIncomeTaxesDeferredIncomeTaxesDetails" xlink:type="extended" xlink:title="42404 - Disclosure - Income Taxes - Deferred income taxes (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxLiabilities" xlink:label="DeferredTaxLiabilities"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsNet" xlink:label="us-gaap_DeferredTaxAssetsNet_636447524627872991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredTaxLiabilities" xlink:to="us-gaap_DeferredTaxAssetsNet_636447524627872991" order="1" use="optional" weight="-1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsGross" xlink:label="us-gaap_DeferredTaxAssetsGross_636447524628002991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsNet_636447524627872991" xlink:to="us-gaap_DeferredTaxAssetsGross_636447524628002991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards" xlink:label="us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_636447524628002991" xlink:to="us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_636447524628012991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsWarrantyReserves" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsWarrantyReserves_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_636447524628002991" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsWarrantyReserves_636447524628012991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeBenefits" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeBenefits_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_636447524628002991" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeBenefits_636447524628012991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsSeverancePayments" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsSeverancePayments_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_636447524628002991" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsSeverancePayments_636447524628012991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsInvestmentInSubsidiaries" xlink:label="us-gaap_DeferredTaxAssetsInvestmentInSubsidiaries_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_636447524628002991" xlink:to="us-gaap_DeferredTaxAssetsInvestmentInSubsidiaries_636447524628012991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwards" xlink:label="us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_636447524628002991" xlink:to="us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_636447524628012991" order="6" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_636447524628002991" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts_636447524628012991" order="7" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_DeferredTaxAssetsFairValueAdjustmentOfSubsidiaries" xlink:label="spi_DeferredTaxAssetsFairValueAdjustmentOfSubsidiaries_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_636447524628002991" xlink:to="spi_DeferredTaxAssetsFairValueAdjustmentOfSubsidiaries_636447524628012991" order="8" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_DeferredTaxAssetsCfcTradePayable" xlink:label="spi_DeferredTaxAssetsCfcTradePayable_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_636447524628002991" xlink:to="spi_DeferredTaxAssetsCfcTradePayable_636447524628012991" order="9" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsInvestments" xlink:label="us-gaap_DeferredTaxAssetsInvestments_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_636447524628002991" xlink:to="us-gaap_DeferredTaxAssetsInvestments_636447524628012991" order="10" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsDerivativeInstruments" xlink:label="us-gaap_DeferredTaxAssetsDerivativeInstruments_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_636447524628002991" xlink:to="us-gaap_DeferredTaxAssetsDerivativeInstruments_636447524628012991" order="11" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_636447524628002991" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_636447524628012991" order="12" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsOther" xlink:label="us-gaap_DeferredTaxAssetsOther_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_636447524628002991" xlink:to="us-gaap_DeferredTaxAssetsOther_636447524628012991" order="13" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="us-gaap_DeferredTaxAssetsValuationAllowance_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsNet_636447524627872991" xlink:to="us-gaap_DeferredTaxAssetsValuationAllowance_636447524628012991" order="2" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities" xlink:label="us-gaap_DeferredIncomeTaxLiabilities_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="DeferredTaxLiabilities" xlink:to="us-gaap_DeferredIncomeTaxLiabilities_636447524628012991" order="2" use="optional" weight="1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="spi-20161231.xsd#spi_DeferredTaxLiabilitiesFairValueAdjustmentOfSubsidiaries" xlink:label="spi_DeferredTaxLiabilitiesFairValueAdjustmentOfSubsidiaries_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredIncomeTaxLiabilities_636447524628012991" xlink:to="spi_DeferredTaxLiabilitiesFairValueAdjustmentOfSubsidiaries_636447524628012991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxLiabilitiesOther" xlink:label="us-gaap_DeferredTaxLiabilitiesOther_636447524628012991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredIncomeTaxLiabilities_636447524628012991" xlink:to="us-gaap_DeferredTaxLiabilitiesOther_636447524628012991" order="2" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.spisolar.com/role/DisclosureCommitmentsAndContingenciesOperatingLeasesDetails" xlink:type="extended" xlink:title="42604 - Disclosure - Commitments and Contingencies - Operating leases (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:label="OperatingLeasesFutureMinimumPaymentsDue"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_636447524628022991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OperatingLeasesFutureMinimumPaymentsDue" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_636447524628022991" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_636447524628022991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OperatingLeasesFutureMinimumPaymentsDue" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_636447524628022991" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_636447524628022991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OperatingLeasesFutureMinimumPaymentsDue" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_636447524628022991" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_636447524628022991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OperatingLeasesFutureMinimumPaymentsDue" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_636447524628022991" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_636447524628022991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OperatingLeasesFutureMinimumPaymentsDue" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_636447524628022991" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_636447524628022991"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="OperatingLeasesFutureMinimumPaymentsDue" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_636447524628022991" order="6" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| </linkbase> |